-/**
+/*
* Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
import com.google.common.collect.ImmutableMultimap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Multimap;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
/**
* An immutable view of the current generation of listeners.
*/
+@Deprecated
final class ListenerMapGeneration {
private static final int CACHE_MAX_ENTRIES = 1000;
return typeToListeners.keySet();
}
+ @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD",
+ justification = "https://github.com/spotbugs/spotbugs/issues/811")
private static Iterable<Class<?>> getNotificationTypes(final Class<?> cls) {
- final Class<?>[] ifaces = cls.getInterfaces();
- return Arrays.stream(ifaces)
+ return Arrays.stream(cls.getInterfaces())
.filter(input -> !Notification.class.equals(input) && Notification.class.isAssignableFrom(input))
.collect(Collectors.toList());
}