Ref: add new static analyser rule: category/java/errorprone.xml/UnnecessaryCaseChange
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user