Skip to content

Commit 4157979

Browse files
committed
Make Spotless happy
1 parent c24e0e9 commit 4157979

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -450,16 +450,16 @@ public void parse(final String pattern, final List<PatternConverter> patternConv
450450

451451
default:
452452

453-
if (c >= '0' && c <= '9') {
454-
formattingInfo = new FormattingInfo(formattingInfo.isLeftAligned(), formattingInfo.getMinLength(),
455-
c - '0', formattingInfo.isLeftTruncate(), formattingInfo.isZeroPad());
456-
state = ParserState.MAX_STATE;
457-
} else {
458-
LOGGER.error("Error occurred in position " + i + ".\n Was expecting digit, instead got char \"" + c
459-
+ "\".");
460-
461-
state = ParserState.LITERAL_STATE;
462-
}
453+
if (c >= '0' && c <= '9') {
454+
formattingInfo = new FormattingInfo(formattingInfo.isLeftAligned(), formattingInfo.getMinLength(),
455+
c - '0', formattingInfo.isLeftTruncate(), formattingInfo.isZeroPad());
456+
state = ParserState.MAX_STATE;
457+
} else {
458+
LOGGER.error("Error occurred in position " + i + ".\n Was expecting digit, instead got char \"" + c
459+
+ "\".");
460+
461+
state = ParserState.LITERAL_STATE;
462+
}
463463
}
464464

465465
break;

0 commit comments

Comments
 (0)