diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-02 11:43:19 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-10-02 12:43:19 +0300 |
commit | 7e4b4ff5a9e9eca6810d473a4d7681a61c9a89ce (patch) | |
tree | 9351fb5d91124db9935f684da60bdb74ef01881d /shared | |
parent | 43f4a17f0d17e584e83ea3faaa40ac1def1dd4b1 (diff) | |
download | vaadin-framework-7e4b4ff5a9e9eca6810d473a4d7681a61c9a89ce.tar.gz vaadin-framework-7e4b4ff5a9e9eca6810d473a4d7681a61c9a89ce.zip |
Use enhanced for loop for arrays. (#10121)
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/util/SharedUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java b/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java index 2cab2fd5b5..9a837c1e75 100644 --- a/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java +++ b/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java @@ -164,8 +164,8 @@ public class SharedUtil implements Serializable { return ""; } StringBuilder sb = new StringBuilder(); - for (int i = 0; i < parts.length; i++) { - sb.append(parts[i]); + for (String part : parts) { + sb.append(part); sb.append(separator); } return sb.substring(0, sb.length() - separator.length()); |