Fix Java 7 compiler warning. This method only calls a SafeVarargs method and is also safe

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1458818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2013-03-20 13:18:23 +00:00
parent ce29415565
commit bac0ad9d1c
1 changed files with 1 additions and 0 deletions

View File

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