mirror of https://github.com/apache/lucene.git
LUCENE-4808: hack around the current jdk8 backwards break bug to please jenkins
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1454986 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
300451f1f8
commit
c97a94e020
|
@ -37,8 +37,8 @@ public class TestVersion extends LuceneTestCase {
|
||||||
Version values[] = Version.values();
|
Version values[] = Version.values();
|
||||||
// all but the latest version should be deprecated
|
// all but the latest version should be deprecated
|
||||||
for (int i = 0; i < values.length-2; i++) {
|
for (int i = 0; i < values.length-2; i++) {
|
||||||
assertTrue(values[i].name() + " should be deprecated",
|
assertNotNull(values[i].name() + " should be deprecated",
|
||||||
Version.class.getField(values[i].name()).isAnnotationPresent(Deprecated.class));
|
Version.class.getField(values[i].name()).getAnnotation(Deprecated.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue