diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-18 19:47:48 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-19 10:51:57 +0300 |
commit | aa225cce86d34fc656e091f5eb62f73d17351345 (patch) | |
tree | 884500dd5f23086f0b51067ec1e9e7172375523f /compatibility-server/src/main/java | |
parent | 797cc0104eaf291afbed913f1c748b1f76bbf522 (diff) | |
download | vaadin-framework-aa225cce86d34fc656e091f5eb62f73d17351345.tar.gz vaadin-framework-aa225cce86d34fc656e091f5eb62f73d17351345.zip |
Remove unneeded ArrayList construction
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); } } |