aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/Upload.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/Upload.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/Upload.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Upload.java b/server/src/main/java/com/vaadin/ui/Upload.java
index 0a88b40215..8f50f5f905 100644
--- a/server/src/main/java/com/vaadin/ui/Upload.java
+++ b/server/src/main/java/com/vaadin/ui/Upload.java
@@ -73,8 +73,8 @@ import com.vaadin.util.ReflectTools;
* @since 3.0
*/
@SuppressWarnings("serial")
-public class Upload extends AbstractComponent implements Component.Focusable,
- LegacyComponent {
+public class Upload extends AbstractComponent
+ implements Component.Focusable, LegacyComponent {
/**
* Should the field be focused on next repaint?
@@ -233,9 +233,8 @@ public class Upload extends AbstractComponent implements Component.Focusable,
"uploadFailed", new Class[] { FailedEvent.class });
UPLOAD_STARTED_METHOD = StartedListener.class.getDeclaredMethod(
"uploadStarted", new Class[] { StartedEvent.class });
- UPLOAD_SUCCEEDED_METHOD = SucceededListener.class
- .getDeclaredMethod("uploadSucceeded",
- new Class[] { SucceededEvent.class });
+ UPLOAD_SUCCEEDED_METHOD = SucceededListener.class.getDeclaredMethod(
+ "uploadSucceeded", new Class[] { SucceededEvent.class });
} catch (final java.lang.NoSuchMethodException e) {
// This should never happen
throw new java.lang.RuntimeException(
@@ -907,8 +906,8 @@ public class Upload extends AbstractComponent implements Component.Focusable,
// this is implemented differently than other listeners to maintain
// backwards compatibility
if (progressListeners != null) {
- for (Iterator<ProgressListener> it = progressListeners.iterator(); it
- .hasNext();) {
+ for (Iterator<ProgressListener> it = progressListeners
+ .iterator(); it.hasNext();) {
ProgressListener l = it.next();
l.updateProgress(totalBytes, contentLength);
}
@@ -1115,8 +1114,8 @@ public class Upload extends AbstractComponent implements Component.Focusable,
@Override
public boolean listenProgress() {
- return (progressListeners != null && !progressListeners
- .isEmpty());
+ return (progressListeners != null
+ && !progressListeners.isEmpty());
}
@Override