lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1458818 - /lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
Date Wed, 20 Mar 2013 13:18:24 GMT
Author: uschindler
Date: Wed Mar 20 13:18:23 2013
New Revision: 1458818

URL: http://svn.apache.org/r1458818
Log:
Fix Java 7 compiler warning. This method only calls a SafeVarargs method and is also safe

Modified:
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java?rev=1458818&r1=1458817&r2=1458818&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
Wed Mar 20 13:18:23 2013
@@ -655,6 +655,7 @@ public abstract class LuceneTestCase ext
    * Return <code>args</code> as a {@link Set} instance. The order of elements
is not
    * preserved in iterators.
    */
+  @SafeVarargs @SuppressWarnings("varargs")
   public static <T> Set<T> asSet(T... args) {
     return new HashSet<T>(Arrays.asList(args));
   }



Mime
View raw message