From 3b3c918f1206764230f61fcd3ea44bbfe382748a Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 25 Mar 2019 08:22:31 +0100 Subject: [PATCH] Do not throw Exception OsgiBundleScanningSchemaService.destroyInstance() does not need to declare Exception as thrown, remove it to keep sonar happy. Change-Id: I1bdec43b8c467f4562f33914340fa203f848c317 Signed-off-by: Robert Varga --- .../schema/service/osgi/OsgiBundleScanningSchemaService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/mdsal-dom-schema-service-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/service/osgi/OsgiBundleScanningSchemaService.java b/dom/mdsal-dom-schema-service-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/service/osgi/OsgiBundleScanningSchemaService.java index 88fe6c4a9b..4c3726d32e 100644 --- a/dom/mdsal-dom-schema-service-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/service/osgi/OsgiBundleScanningSchemaService.java +++ b/dom/mdsal-dom-schema-service-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/service/osgi/OsgiBundleScanningSchemaService.java @@ -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(); -- 2.36.6