eclipse not inserting “diamond” operator in a java 8 project

后端 未结 6 654
轮回少年
轮回少年 2021-01-03 21:26

I have a maven project configured to use Java 8 and all works fine, eclipse compiles code like:

Map map = new HashMap<>();
         


        
6条回答
  •  失恋的感觉
    2021-01-03 22:17

    I had the same problem but the solution to set everything to default didn't work for me. What worked for me is Java > Editor > Content Assist > Advanced and unchecking JPA Proposals in the upper window.

提交回复
热议问题