mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8209456: [error-prone] ShortCircuitBoolean in java.logging
Reviewed-by: rriggs
This commit is contained in:
parent
0d9777a9cb
commit
65f4c7dee4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue