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

后端 未结 6 673
轮回少年
轮回少年 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:16

    What worked for me is enabling/checking Java > Editor > Content Assist > Advanced >Java Proposals. (Upper part of the settings page)

提交回复
热议问题