Make sure we only recomend this to "modern" JVMs

This commit is contained in:
Juan Martín Sotuyo Dodero
2017-12-07 22:48:08 -03:00
parent 07cb937d6e
commit dc75904de6

View File

@ -424,6 +424,7 @@ public class Foo {
<rule name="OptimizableToArrayCall"
language="java"
since="1.8"
minimumLanguageVersion="1.6"
message="This call to Collection.toArray() may be optimizable"
class="net.sourceforge.pmd.lang.rule.XPathRule"
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_performance.html#optimizabletoarraycall">