我的Clover检测失败并显示错误:
> /path/to/MyClass.java:138:28:unexpected token: >
在线:
return new HashSet<>();
尽管执行三叶草检测,源级别明确设置为1.7:
ant."clover-instr"(srcdir:it, destdir:cloverConvention.instrSrcDir, source:"1.7")
(^ gradle)
实际上,我可以将该属性设置为我喜欢的任何属性。没有区别:
ant."clover-instr"(srcdir:it, destdir:cloverConvention.instrSrcDir, source:"one billion")
但它是一个有效的属性,因为如果我在其中放入其他内容将会以不同的方式失败。
ant."clover-instr"(srcdir:it, destdir:cloverConvention.instrSrcDir, sores:"1.7")
> clover-instr doesn't support the "sores" attribute
我是否需要做任何其他事情才能识别1.7来源?使用Clover 3.1.7
答案 0 :(得分:0)
这是一个回归错误。 Clover v3.1.5工作正常。