Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8209456

[error-prone] ShortCircuitBoolean in java.logging

XMLWordPrintable

      src/java.logging/share/classes/java/util/logging/Formatter.java:140: warning: [ShortCircuitBoolean] Prefer the short-circuiting boolean operators && and || to & and |.
                      if (digit >= '0' & digit <= '9') {
                                       ^
          (see https://errorprone.info/bugpattern/ShortCircuitBoolean.md)
        Did you mean 'if (digit >= '0' && digit <= '9') {'?

            iignatyev Igor Ignatyev (Inactive)
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: