diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-03 09:49:07 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-10-03 10:49:07 +0300 |
commit | 28b52d687dade66154a4fcd545415bf0d01b0a53 (patch) | |
tree | ecd79ff3ccee5c8a50257833aa8264c08a291b23 /uitest | |
parent | 7e4b4ff5a9e9eca6810d473a4d7681a61c9a89ce (diff) | |
download | vaadin-framework-28b52d687dade66154a4fcd545415bf0d01b0a53.tar.gz vaadin-framework-28b52d687dade66154a4fcd545415bf0d01b0a53.zip |
Remove unneeded .toArray() (#10131)
Use for each loop.
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/dd/TreeDragStart.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/dd/TreeDragStart.java b/uitest/src/main/java/com/vaadin/tests/dd/TreeDragStart.java index e6c45ae9c3..a0f16839b1 100644 --- a/uitest/src/main/java/com/vaadin/tests/dd/TreeDragStart.java +++ b/uitest/src/main/java/com/vaadin/tests/dd/TreeDragStart.java @@ -51,7 +51,7 @@ public class TreeDragStart extends TestBase { tree.setContainerDataSource(createTreeContent()); tree.setItemCaptionMode(Tree.ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID); - for (Object item : tree.getItemIds().toArray()) { + for (Object item : tree.getItemIds()) { tree.setItemCaption(item, (String) ((BeanItem<?>) item) .getItemProperty("name").getValue()); } |