Do not throw Exception 37/81137/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Mar 2019 07:22:31 +0000 (08:22 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Mar 2019 07:22:31 +0000 (08:22 +0100)
OsgiBundleScanningSchemaService.destroyInstance() does not need
to declare Exception as thrown, remove it to keep sonar happy.

Change-Id: I1bdec43b8c467f4562f33914340fa203f848c317
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-schema-service-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/service/osgi/OsgiBundleScanningSchemaService.java

index 88fe6c4a9b599a90b25e411f6aa8f79e98baf094..4c3726d32e9cda4a46566be314832c22ec5cf889 100644 (file)
@@ -96,7 +96,7 @@ public final class OsgiBundleScanningSchemaService extends ScanningSchemaService
     }
 
     @VisibleForTesting
-    public static void destroyInstance() throws Exception {
+    public static void destroyInstance() {
         final OsgiBundleScanningSchemaService instance = GLOBAL_INSTANCE.getAndSet(null);
         if (instance != null) {
             instance.closeInstance();