完整报错信息:

Explicit type argument EquipRecordGate can be replaced with <> less... (Ctrl+F1) 

Inspection info: This inspection reports all new expressions with type arguments which can be replaced with diamond type <>

Such <> syntax is not supported under Java 1.6 or earlier JVMs.

报错信息:Explicit type argument EquipRecordGate can be replaced with

大概意思是:

显式类型参数EquipRecordGate可以替换为<>,检查信息:报告所有带有类型参数的新表达式,这些表达式可以用<>类型替换,因此<>语法不支持java 1.6或更早版本的JVM.

改成下面的语句就行了。

报错信息:Explicit type argument EquipRecordGate can be replaced with


相关文章: