import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
-import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Logger;
*/
public Collection<?> getListeners(Class<?> eventType) {
if (eventRouter == null) {
- return Collections.EMPTY_LIST;
+ return Collections.emptyList();
}
return eventRouter.getListeners(eventType);
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(
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);
}
*/
@Override
public Enumeration getServlets() {
- return Collections.enumeration(Collections.EMPTY_SET);
+ return Collections.enumeration(Collections.emptySet());
}
/*
*/
@Override
public Enumeration getInitParameterNames() {
- return Collections.enumeration(Collections.EMPTY_LIST);
+ return Collections.enumeration(Collections.emptyList());
}
/*