Diamond types are not supported at language level '5‘

 

当时,我问了下大神,他们问我是不是jdk问题。因为jdk8才支持这样的棱形写法。当时自己的jdk版本是jdk8,然后就奇怪了,最后我发现原来在Language level中调成了5.0

5.0不支持6.0/7.0特性的代码,所以我把它设置为7,问题解决了。

Diamond types are not supported at language level '5‘

转载自:http://www.bubuko.com/infodetail-3036271.html

 

相关文章:

  • 2021-12-13
  • 2021-08-13
  • 2021-12-03
  • 2021-04-14
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2021-08-15
  • 2021-09-18
  • 2021-05-17
  • 2021-10-03
  • 2021-04-02
相关资源
相似解决方案