架构师

您现在的位置是:首页 > 技术博客 > 编程基础

编程基础

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

架构师小跟班 2020-05-29 编程基础
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

完整报错信息:

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.

大概意思是:

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

改成下面的语句就行了。


文章评论