mirror of https://github.com/apache/lucene.git
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:
parent
ce29415565
commit
bac0ad9d1c
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue