Ref: add new static analyser rule: category/java/errorprone.xml/UnnecessaryCaseChange

This commit is contained in:
Laurent Clouet
2024-06-06 01:42:04 +00:00
parent 86c21a96d2
commit 21ab1d0e19
2 changed files with 3 additions and 1 deletions

View File

@@ -406,7 +406,7 @@ public class Worker {
}
if (shutdownMode != null) {
if (shutdownMode.toLowerCase().equals("wait") || shutdownMode.toLowerCase().equals("hard")) {
if (shutdownMode.equalsIgnoreCase("wait") || shutdownMode.equalsIgnoreCase("hard")) {
config.setShutdownMode(shutdownMode.toLowerCase());
}
else {