Java 8 code is automatically converted to some other format in intellij
Answered
I have this annoying issue that I am facing for a couple of days.
Whenever I write a code in Java 8 in Intellij, it automatically gets converted to some other format(Maybe java 11).
Below is the example :
Actual Code :
for (Attribute attribute : attributeList) { System.out.println(""); }
Converted Code :
for val attribute : attributeList { System.out.println(""); }
I don't know how to get rid of it. Can someone please help.
Please sign in to leave a comment.
Hello,
Please tell what IntelliJ IDEA version do you use? Do you have any plugins installed like i.e. Advanced Java Folding? Thank you
You were right. I had Advanced Java Folding installed. Now my problem is solved. Thanks a ton.
Thank you for confirming it works now!:)