testng: disable javadoc check for new testng versions

This commit is contained in:
Anna Kozlova
2015-07-21 08:51:16 +02:00
parent fea3cf4643
commit af596a12d5
@@ -69,7 +69,7 @@ public class TestNGUtil {
private static boolean hasDocTagsSupport() {
String testngJarPath = PathUtil.getJarPathForClass(Test.class);
String version = JarUtil.getJarAttribute(new File(testngJarPath), Attributes.Name.IMPLEMENTATION_VERSION);
return version == null || StringUtil.compareVersionNumbers(version, "5.12") <= 0;
return version != null && StringUtil.compareVersionNumbers(version, "5.12") <= 0;
}
public static final String TEST_ANNOTATION_FQN = Test.class.getName();