代码质量构建时报diamond operator is not supported in -source 1.6错误,
是编译器jdk版本低导致
本地ide里面报这个错误可以修改工程设置,选择编译器jdk版本1.7以上
质量构建报这个错可以在pom.xml中添加如下配置
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>