diff options
Diffstat (limited to 'compatibility-server/src/main/java')
-rw-r--r-- | compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java index 2b27ea4eb4..a89818222c 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java @@ -338,8 +338,8 @@ public abstract class AbstractSelect extends AbstractField<Object> implements // Creates the options container and add given options to it final Container c = new IndexedContainer(); if (options != null) { - for (final Iterator<?> i = options.iterator(); i.hasNext();) { - c.addItem(i.next()); + for (final Object item : options) { + c.addItem(item); } } |