8209456: [error-prone] ShortCircuitBoolean in java.logging
Reviewed-by: rriggs
This commit is contained in:
parent
0d9777a9cb
commit
65f4c7dee4
@ -137,7 +137,7 @@ public abstract class Formatter {
|
||||
while ((index = format.indexOf('{', index+1)) > -1) {
|
||||
if (index >= fence) break;
|
||||
char digit = format.charAt(index+1);
|
||||
if (digit >= '0' & digit <= '9') {
|
||||
if (digit >= '0' && digit <= '9') {
|
||||
return java.text.MessageFormat.format(format, parameters);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user