mirror of https://github.com/apache/lucene.git
Undo the stupid import and use correct type :-)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f5b524f434
commit
a770a0d184
|
@ -17,8 +17,6 @@
|
|||
|
||||
package org.apache.lucene.util;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
public class TestVersion extends LuceneTestCase {
|
||||
|
||||
public void test() {
|
||||
|
@ -43,7 +41,7 @@ public class TestVersion extends LuceneTestCase {
|
|||
assertSame("Last constant must be LUCENE_CURRENT", Version.LUCENE_CURRENT, values[i]);
|
||||
}
|
||||
// TODO: Use isAnnotationPresent once bug in Java 8 is fixed (LUCENE-4808)
|
||||
final Annotation ann = Version.class.getField(values[i].name()).getAnnotation(Deprecated.class);
|
||||
final Deprecated ann = Version.class.getField(values[i].name()).getAnnotation(Deprecated.class);
|
||||
if (i + 2 != values.length) {
|
||||
assertNotNull(values[i].name() + " should be deprecated", ann);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue