In the Moduls section I switch the language level to 7.0, but 1.5 is still used when compiling.
What could be the problem?
In the Moduls section I switch the language level to 7.0, but 1.5 is still used when compiling.
What could be the problem?
If the project uses maven, then it also needs to change something like this:
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> Source: https://ru.stackoverflow.com/questions/479547/
All Articles