8209456: [error-prone] ShortCircuitBoolean in java.logging

Reviewed-by: rriggs
This commit is contained in:
Igor Ignatyev 2018-08-19 22:41:49 -07:00
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);
}
}