Should I update my java file to be entitled kotlin when translating to Kotlin?

BBurchfield :

I've recently translated all Java files in my Android Studio app to Kotlin. However, I still have the java folder holding all of my Kotlin classes. Does this naming convention matter much? Is it possible to change it for posterity? Would this cause any issues? Thank you for your time!

TomH :

It won't cause any harm. It'll just be confusing for any developers.

You'll notice that some projects have a java and a kotlin folder.

You can do this too, just remember that if you make a new folder, you need to mark it as a sources folder for your IDE :)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=129641&siteId=1