Java 8 code is automatically converted to some other format in intellij

Viewed 67

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.

1 Answers

Finally, the problem is solved. Somehow a plugin got installed. i.e. Advanced Java Folding. I disabled it and now things are perfect.

Related