lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1455203 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/util/TestVersion.java
Date Mon, 11 Mar 2013 16:00:12 GMT
Author: uschindler
Date: Mon Mar 11 16:00:11 2013
New Revision: 1455203

URL: http://svn.apache.org/r1455203
Log:
Merged revision(s) 1455202 from lucene/dev/trunk:
Undo the stupid import and use correct type :-)

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestVersion.java

Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestVersion.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestVersion.java?rev=1455203&r1=1455202&r2=1455203&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestVersion.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestVersion.java
Mon Mar 11 16:00:11 2013
@@ -17,8 +17,6 @@
 
 package org.apache.lucene.util;
 
-import java.lang.annotation.Annotation;
-
 public class TestVersion extends LuceneTestCase {
 
   public void test() {
@@ -44,7 +42,7 @@ public class TestVersion extends LuceneT
         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 {



Mime
View raw message