Skip to content

Commit

Permalink
Fixup variable declaration usage distance
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Tobianas committed May 7, 2024
1 parent e6bcae4 commit 47b274c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
Expand Down

0 comments on commit 47b274c

Please sign in to comment.