Do not use a useless array 61/97961/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 17 Oct 2021 20:05:00 +0000 (22:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 17 Oct 2021 20:05:00 +0000 (22:05 +0200)
OptionUtils.combine() takes varargs, hence we can ditch the explicit
array.

Change-Id: I1f875b81f610b13146150f3454dbf806217a4e72
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features-test/src/main/java/org/opendaylight/odlparent/featuretest/SingleFeatureTest.java

index cb2b3aaf1826330b03af0ccb430e9ec22177f825..652c2849079c538a5e8d2733988283db1d261249 100644 (file)
@@ -233,7 +233,7 @@ public class SingleFeatureTest {
         }
 
         final String version = getKarafReleaseVersion();
-        return OptionUtils.combine(baseConfig, new VMOption[] {
+        return OptionUtils.combine(baseConfig,
             new VMOption("--add-reads=java.xml=java.logging"),
             new VMOption("--add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED"),
             new VMOption("--patch-module"),
@@ -257,8 +257,7 @@ public class SingleFeatureTest {
             new VMOption("--add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED"),
             new VMOption("--add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED"),
             new VMOption("-classpath"),
-            new VMOption("lib/jdk9plus/*" + File.pathSeparator + "lib/boot/*")
-        });
+            new VMOption("lib/jdk9plus/*" + File.pathSeparator + "lib/boot/*"));
     }
 
     private static String getNewJFRFile() throws IOException {