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

1.解决办法

  • File->project -> Modules -> Source -> Language Leve -> 8-Lambda,type annotation etc.
    Intellij中出现:Diamond types are not supported at this language level_开发工具

  • File->project -> Project中 -> project Language Level -> 8-Lambda,type annotation etc.
    Intellij中出现:Diamond types are not supported at this language level_编程_02

  • Settings -> Build,execution,Deployment -> Compiler -> Java Compiler

Intellij中出现:Diamond types are not supported at this language level_开发工具_03