aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/CustomLayout.java
diff options
context:
space:
mode:
authorPer-Åke Minborg <minborg@speedment.com>2016-10-28 23:03:46 -0700
committerHenri Sara <hesara@vaadin.com>2016-11-05 04:35:59 +0200
commita7f33a05e76e575fe838fba3eeaa1b1e17be5e86 (patch)
tree6767e6911cf0027f5c85a3107d3cecf839d38972 /server/src/main/java/com/vaadin/ui/CustomLayout.java
parenta1af515897aef4dcd95cef4b11db4d651247b5e7 (diff)
downloadvaadin-framework-a7f33a05e76e575fe838fba3eeaa1b1e17be5e86.tar.gz
vaadin-framework-a7f33a05e76e575fe838fba3eeaa1b1e17be5e86.zip
Replace implicit for-loop with foreach
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7233
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/CustomLayout.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/CustomLayout.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/ui/CustomLayout.java b/server/src/main/java/com/vaadin/ui/CustomLayout.java
index 179969765d..d7cbcee962 100644
--- a/server/src/main/java/com/vaadin/ui/CustomLayout.java
+++ b/server/src/main/java/com/vaadin/ui/CustomLayout.java
@@ -236,9 +236,7 @@ public class CustomLayout extends AbstractLayout implements LegacyComponent {
// Gets the locations
String oldLocation = null;
String newLocation = null;
- for (final Iterator<String> i = slots.keySet().iterator(); i
- .hasNext();) {
- final String location = i.next();
+ for (final String location : slots.keySet()) {
final Component component = slots.get(location);
if (component == oldComponent) {
oldLocation = location;