Use Collections.singletonList() instead of Arrays.asList()
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / parser / impl / TypesResolutionTest.java
index 65d9d5d35c8b582959b9b32048572185b62e5afe..d88f88b19b32f8fb8e5a2724905c6af398b29a63 100644 (file)
@@ -17,6 +17,7 @@ import java.io.File;
 import java.math.BigInteger;
 import java.net.URI;
 import java.util.Arrays;
+import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 import org.junit.Before;
@@ -344,13 +345,13 @@ public class TypesResolutionTest {
     public void testUnionWithBits() throws Exception {
         File unionbits = new File(getClass().getResource("/types/union-with-bits/union-bits-model.yang").toURI());
         YangContextParser parser = new YangParserImpl();
-        parser.parseFiles(Arrays.asList(unionbits));
+        parser.parseFiles(Collections.singletonList(unionbits));
     }
 
     @Test(expected = YangParseException.class)
     public void testUnionInList() throws Exception {
        File unioninlist = new File(getClass().getResource("/types/union-in-list/unioninlisttest.yang").toURI());
        YangContextParser parser = new YangParserImpl();
-       parser.parseFiles(Arrays.asList(unioninlist));
+       parser.parseFiles(Collections.singletonList(unioninlist));
     }
 }