Skip to content

Commit 65f4c7d

Browse files
committed
8209456: [error-prone] ShortCircuitBoolean in java.logging
Reviewed-by: rriggs
1 parent 0d9777a commit 65f4c7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java.logging/share/classes/java/util/logging/Formatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public String formatMessage(LogRecord record) {
137137
while ((index = format.indexOf('{', index+1)) > -1) {
138138
if (index >= fence) break;
139139
char digit = format.charAt(index+1);
140-
if (digit >= '0' & digit <= '9') {
140+
if (digit >= '0' && digit <= '9') {
141141
return java.text.MessageFormat.format(format, parameters);
142142
}
143143
}

0 commit comments

Comments
 (0)