Bukama commented on code in PR #589:
URL: https://github.com/apache/maven-war-plugin/pull/589#discussion_r2557667073


##########
src/main/java/org/apache/maven/plugins/war/Overlay.java:
##########
@@ -325,14 +325,12 @@ public int hashCode() {
 
     private String[] parse(String s) {
         final List<String> result = new ArrayList<>();
-        if (s == null) {
-            return result.toArray(new String[result.size()]);
-        } else {
+        if (s != null) {
             String[] tokens = s.split(",");
             for (String token : tokens) {
                 result.add(token.trim());
             }
-            return result.toArray(new String[result.size()]);
         }
+        return result.toArray(new String[0]);

Review Comment:
   Thanks for explanation of A and B, but I personally disagree on C :)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to