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.

0
3 comments

Hello,

Please tell what IntelliJ IDEA version do you use? Do you have any plugins installed like i.e. Advanced Java Folding? Thank you 

0
Avatar
Permanently deleted user

You were right. I had Advanced Java Folding installed. Now my problem is solved. Thanks a ton.

0

Thank you for confirming it works now!:)

0

Please sign in to leave a comment.