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:
Robert Muir 2013-03-11 03:31:41 +00:00
parent 300451f1f8
commit c97a94e020
1 changed files with 2 additions and 2 deletions

View File

@ -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));
} }
} }
} }