Apache Lucene open-source search software
Fix Java 7 compiler warning. This method only calls a SafeVarargs method and is also safe
Uwe Schindlerbac0ad9d1c41
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.javaindex 1b674cf1840..8c1d58f8e60 100644--- a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java@@ -655,6 +655,7 @@ public abstract class LuceneTestCase extends Assert {* 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));}