Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
Description
Static code analysis reveals not fully covered enum in ch.qos.logback.core.subst.Tokenizer
The DEFAULT_VAL_STATE is not being covered in
switch (state)
{ case LITERAL_STATE: addLiteralToken(tokenList, buf); break; case START_STATE: throw new ScanException("Unexpected end of pattern string"); } return tokenList;
}
Probably not a problem, but I suggest adding a
case DEFAULT_VAL_STATE:
throw new Error("Cannot happen");
break;