You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding Maven to the project in IntelliJ, it auto-switch the java compiler to 1.5 while it was set on version 1.8.
This cause problems in the code (for things that are not supported on v1.5) such as the diamonds operator:
publicArrayList<String> list = newArrayList<>();
The solution would be to set maven with the right java version. You can always change back the language of the IDE in File > Project Structure (ctrl + alt + maj + S) then in the Source tab you can select the right language.
The text was updated successfully, but these errors were encountered:
When adding Maven to the project in IntelliJ, it auto-switch the java compiler to 1.5 while it was set on version 1.8.
This cause problems in the code (for things that are not supported on v1.5) such as the diamonds operator:
The solution would be to set maven with the right java version. You can always change back the language of the IDE in File > Project Structure (ctrl + alt + maj + S) then in the Source tab you can select the right language.
The text was updated successfully, but these errors were encountered: