michael-o commented on code in PR #998:
URL: https://github.com/apache/maven/pull/998#discussion_r1110304900


##########
maven-core/src/main/java/org/apache/maven/ReactorReader.java:
##########
@@ -29,15 +29,7 @@
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.nio.file.StandardCopyOption;
-import java.util.ArrayDeque;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Deque;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
+import java.util.*;

Review Comment:
   No, please undo this.



##########
maven-core/src/main/java/org/apache/maven/ReactorReader.java:
##########
@@ -69,8 +61,12 @@ class ReactorReader implements MavenWorkspaceReader {
 
     public static final String PROJECT_LOCAL_REPO = "project-local-repo";
 
-    private static final Collection<String> COMPILE_PHASE_TYPES =
-            Arrays.asList("jar", "ejb-client", "war", "rar", "ejb3", "par", 
"sar", "wsr", "har", "app-client");
+    private static final Set<String> COMPILE_PHASE_TYPES;
+
+    static {
+        COMPILE_PHASE_TYPES = new HashSet<>(
+                Arrays.asList("jar", "ejb-client", "war", "rar", "ejb3", 
"par", "sar", "wsr", "har", "app-client"));
+    }

Review Comment:
   Where is the benefit?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to