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

[error-prone] ShortCircuitBoolean in java.logging

    XMLWordPrintable

    Details

      Description

      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') {'?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: