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 /server/src/main/java/com/vaadin/navigator | |
parent | 43f4a17f0d17e584e83ea3faaa40ac1def1dd4b1 (diff) | |
download | vaadin-framework-7e4b4ff5a9e9eca6810d473a4d7681a61c9a89ce.tar.gz vaadin-framework-7e4b4ff5a9e9eca6810d473a4d7681a61c9a89ce.zip |
Use enhanced for loop for arrays. (#10121)
Diffstat (limited to 'server/src/main/java/com/vaadin/navigator')
-rw-r--r-- | server/src/main/java/com/vaadin/navigator/Navigator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/navigator/Navigator.java b/server/src/main/java/com/vaadin/navigator/Navigator.java index a21cdbcaac..81e141319d 100644 --- a/server/src/main/java/com/vaadin/navigator/Navigator.java +++ b/server/src/main/java/com/vaadin/navigator/Navigator.java @@ -992,8 +992,8 @@ public class Navigator implements Serializable { Map<String, String> parameterMap = new HashMap<>(); String[] parameters = parameterString.split(separator); - for (int i = 0; i < parameters.length; i++) { - String[] keyAndValue = parameters[i] + for (String parameter : parameters) { + String[] keyAndValue = parameter .split(DEFAULT_STATE_PARAMETER_KEY_VALUE_SEPARATOR); parameterMap.put(keyAndValue[0], keyAndValue.length > 1 ? keyAndValue[1] : ""); |