changeset 51442:703576fdd268

8209456: [error-prone] ShortCircuitBoolean in java.logging Reviewed-by: rriggs
author iignatyev
date Sun, 19 Aug 2018 22:41:49 -0700
parents 2e91d927e00c
children cdffba164671
files src/java.logging/share/classes/java/util/logging/Formatter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
                 }
             }