From 47b274c746b03d56869f3d626d7953df2c589d27 Mon Sep 17 00:00:00 2001 From: "tobias.pobocik" Date: Tue, 7 May 2024 09:44:44 +0200 Subject: [PATCH] Fixup variable declaration usage distance Distance between variable stopSuccessful declaration and its first usage is 6, but allowed 3. https://checkstyle.sourceforge.io/checks/coding/variabledeclarationusagedistance.html JIRA: LIGHTY-295 Signed-off-by: tobias.pobocik --- .../io/lighty/core/controller/impl/LightyControllerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighty-core/lighty-controller/src/main/java/io/lighty/core/controller/impl/LightyControllerImpl.java b/lighty-core/lighty-controller/src/main/java/io/lighty/core/controller/impl/LightyControllerImpl.java index 5db7e2eee9..0c4a45f46c 100644 --- a/lighty-core/lighty-controller/src/main/java/io/lighty/core/controller/impl/LightyControllerImpl.java +++ b/lighty-core/lighty-controller/src/main/java/io/lighty/core/controller/impl/LightyControllerImpl.java @@ -390,7 +390,6 @@ private AbstractDataStore prepareDataStore(final DatastoreContext datastoreConte @Override protected boolean stopProcedure() throws InterruptedException { LOG.debug("Lighty Controller stopProcedure"); - boolean stopSuccessful = true; if (this.timer != null) { this.timer.stop(); } @@ -406,6 +405,7 @@ protected boolean stopProcedure() throws InterruptedException { if (this.bindingDOMEntityOwnershipServiceAdapter != null) { this.bindingDOMEntityOwnershipServiceAdapter.close(); } + boolean stopSuccessful = true; if (this.akkaEntityOwnershipService != null) { try { this.akkaEntityOwnershipService.close();