aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java
diff options
context:
space:
mode:
Diffstat (limited to 'compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java
index 6ded53b3a1..a9a09ae49b 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java
@@ -20,7 +20,6 @@ import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
-import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Map;
@@ -926,9 +925,7 @@ public class Upload extends AbstractLegacyComponent
// this is implemented differently than other listeners to maintain
// backwards compatibility
if (progressListeners != null) {
- for (Iterator<ProgressListener> it = progressListeners
- .iterator(); it.hasNext();) {
- ProgressListener l = it.next();
+ for (ProgressListener l : progressListeners) {
l.updateProgress(totalBytes, contentLength);
}
}