X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fdom%2Fbroker%2Fosgi%2FAbstractBrokerServiceProxy.java;h=42997d96fa66651be38859c6aff8052b558abf0f;hb=6cd5778f454ba882d0e15361dfa6a5cd06721d97;hp=8d33ff7997dab4b2a09d813c9200e8b95f7dc762;hpb=c1362c86eb19e92e6c64d10099a45deb499c6db1;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java index 8d33ff7997..42997d96fa 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java @@ -39,9 +39,9 @@ public abstract class AbstractBrokerServiceProxy implem return reference; } - private final Set> registrations = Collections.synchronizedSet(new HashSet>()); + private final Set registrations = Collections.synchronizedSet(new HashSet()); - protected > R addRegistration(final R registration) { + protected R addRegistration(final R registration) { if (registration != null) { registrations.add(registration); } @@ -57,13 +57,14 @@ public abstract class AbstractBrokerServiceProxy implem } @Override + @SuppressWarnings("checkstyle:IllegalCatch") public void close() { if (delegate != null) { delegate = null; RuntimeException potentialException = new RuntimeException( "Uncaught exceptions occured during unregistration"); boolean hasSuppressed = false; - for (Registration registration : registrations) { + for (Registration registration : registrations) { try { registration.close(); } catch (Exception e) {