Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven on IntelliJ set the java compiler to 1.5 #2

Closed
sylhare opened this issue Jun 12, 2017 · 1 comment
Closed

Maven on IntelliJ set the java compiler to 1.5 #2

sylhare opened this issue Jun 12, 2017 · 1 comment
Assignees
Labels

Comments

@sylhare
Copy link
Owner

sylhare commented Jun 12, 2017

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:

public ArrayList<String> list = new ArrayList<>();

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.

@sylhare sylhare self-assigned this Jun 12, 2017
sylhare added a commit that referenced this issue Jun 12, 2017
Updated the documentation
@sylhare
Copy link
Owner Author

sylhare commented Jun 12, 2017

See the Readme.md file for detail solution.

@sylhare sylhare closed this as completed Jun 12, 2017
@sylhare sylhare removed the wontfix label Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant