1
0

Fix SpotBugs [ERROR] Medium

Switch statement found in
org.apache.commons.logging.impl.SimpleLog.log(int, Object, Throwable)
where default case is missing
[org.apache.commons.logging.impl.SimpleLog] At SimpleLog.java:[lines
505-522] SF_SWITCH_NO_DEFAULT
This commit is contained in:
Gary Gregory
2023-11-26 14:17:02 -05:00
parent e8a558b708
commit a164386b2a
2 changed files with 7 additions and 0 deletions

View File

@@ -521,6 +521,10 @@ public class SimpleLog implements Log, Serializable {
case SimpleLog.LOG_LEVEL_FATAL:
buf.append("[FATAL] ");
break;
default:
// Or throw?
buf.append("[UNDEFINED] ");
break;
}
// Append the name of the log instance if so configured