Skip to content

Commit

Permalink
MOSIP-32461 sonar fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
  • Loading branch information
Sowmya Ujjappa Banakar committed Jul 2, 2024
1 parent c07d5df commit 4e3ed3f
Show file tree
Hide file tree
Showing 4 changed files with 487 additions and 484 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public MutablePropertySources getPropertySources() {
ExceptionUtils.getStackTrace(e));
}
}));
executorService.shutdown();
executorService.close();
} else {
regProcLogger.error("No stage class is found. Please make sure correct correct stage class base packages are specified in properties and stages are added to classpath/dependencies.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public MessageDTO process(MessageDTO object, String stageName) {
};
ExecutorService es = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
es.submit(r);
es.shutdown();
es.close();
registrationStatusDto
.setLatestTransactionStatusCode(RegistrationTransactionStatusCode.SUCCESS.toString());
object.setIsValid(Boolean.TRUE);
Expand Down
Loading

0 comments on commit 4e3ed3f

Please sign in to comment.