# HG changeset patch # User iignatyev # Date 1534743709 25200 # Node ID 703576fdd268138047de557f47af4ba08d4a1bae # Parent 2e91d927e00ce5fa118d86e2cedb477e6eb9ca48 8209456: [error-prone] ShortCircuitBoolean in java.logging Reviewed-by: rriggs diff -r 2e91d927e00c -r 703576fdd268 src/java.logging/share/classes/java/util/logging/Formatter.java --- a/src/java.logging/share/classes/java/util/logging/Formatter.java Sat Aug 18 13:59:25 2018 -0400 +++ b/src/java.logging/share/classes/java/util/logging/Formatter.java Sun Aug 19 22:41:49 2018 -0700 @@ -137,7 +137,7 @@ 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); } }