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.java18
1 files changed, 9 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 11eb553018..2ab409f9d3 100644
--- a/server/src/main/java/com/vaadin/ui/Upload.java
+++ b/server/src/main/java/com/vaadin/ui/Upload.java
@@ -229,14 +229,14 @@ public class Upload extends AbstractComponent
static {
try {
- UPLOAD_FINISHED_METHOD = FinishedListener.class.getDeclaredMethod(
- "uploadFinished", FinishedEvent.class);
- UPLOAD_FAILED_METHOD = FailedListener.class.getDeclaredMethod(
- "uploadFailed", FailedEvent.class);
- UPLOAD_STARTED_METHOD = StartedListener.class.getDeclaredMethod(
- "uploadStarted", StartedEvent.class);
- UPLOAD_SUCCEEDED_METHOD = SucceededListener.class.getDeclaredMethod(
- "uploadSucceeded", SucceededEvent.class);
+ UPLOAD_FINISHED_METHOD = FinishedListener.class
+ .getDeclaredMethod("uploadFinished", FinishedEvent.class);
+ UPLOAD_FAILED_METHOD = FailedListener.class
+ .getDeclaredMethod("uploadFailed", FailedEvent.class);
+ UPLOAD_STARTED_METHOD = StartedListener.class
+ .getDeclaredMethod("uploadStarted", StartedEvent.class);
+ UPLOAD_SUCCEEDED_METHOD = SucceededListener.class
+ .getDeclaredMethod("uploadSucceeded", SucceededEvent.class);
} catch (final java.lang.NoSuchMethodException e) {
// This should never happen
throw new java.lang.RuntimeException(
@@ -1118,7 +1118,7 @@ public class Upload extends AbstractComponent
public java.util.Collection<?> getListeners(java.lang.Class<?> eventType) {
if (StreamingProgressEvent.class.isAssignableFrom(eventType)) {
if (progressListeners == null) {
- return Collections.EMPTY_LIST;
+ return Collections.emptyList();
} else {
return Collections.unmodifiableCollection(progressListeners);
}