Intellij中出现:Diamond types are not supported at this language level

1.解决办法

  • File->project -> Modules -> Source -> Language Leve -> 8-Lambda,type annotation etc.
    image.png
  • File->project -> Project中 -> project Language Level -> 8-Lambda,type annotation etc.
    image.png
  • Settings -> Build,execution,Deployment -> Compiler -> Java Compiler
    image.png

原文:https://blog.csdn.net/liu16659/article/details/80230164

你可能感兴趣的:(Intellij中出现:Diamond types are not supported at this language level)