test/jdk/tools/jpackage/helpers/jdk/jpackage/test/JPackageCommand.java
branchJDK-8200758-branch
changeset 58762 0fe62353385b
parent 58671 3b578a5976df
child 58993 b5e1baa9d2c3
--- a/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/JPackageCommand.java	Wed Oct 23 10:10:34 2019 -0400
+++ b/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/JPackageCommand.java	Wed Oct 23 10:37:54 2019 -0400
@@ -619,7 +619,7 @@
     }
 
     public void verifyIsOfType(PackageType ... types) {
-        final Set<PackageType> typesSet = Set.of(types);
+        final var typesSet = Stream.of(types).collect(Collectors.toSet());
         if (!hasArgument("--package-type")) {
             if (!isImagePackageType()) {
                 if (TKit.isLinux() && typesSet.equals(PackageType.LINUX)) {