gabrywu commented on a change in pull request #2920:
URL: 
https://github.com/apache/incubator-dolphinscheduler/pull/2920#discussion_r440179324



##########
File path: 
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/CollectionUtils.java
##########
@@ -98,8 +98,8 @@ public static boolean isEmpty(Collection coll) {
         }
         String[] strings = str.split(separator);
         Map<String, String> map = new HashMap<>(strings.length);
-        for (int i = 0; i < strings.length; i++) {
-            String[] strArray = strings[i].split("=");
+        for (String string : strings) {

Review comment:
       I don't think so .Using index to traverse array [] is a standard way 
,right ? Why is it not elegant?
   foreach is better than fori when traversing List, Set, Array ,etc. 




----------------------------------------------------------------
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.

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


Reply via email to