From a7f33a05e76e575fe838fba3eeaa1b1e17be5e86 Mon Sep 17 00:00:00 2001 From: Per-Åke Minborg Date: Fri, 28 Oct 2016 23:03:46 -0700 Subject: Replace implicit for-loop with foreach Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7233 --- server/src/main/java/com/vaadin/ui/CustomLayout.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/src/main/java/com/vaadin/ui/CustomLayout.java') 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 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; -- cgit v1.2.3