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

Dead store to local variables in method java.util.regex.Pattern.caseInsensitiveRangeFor

XMLWordPrintable

    • b35
    • generic
    • generic

      In method java.util.regex.Pattern.caseInsensitiveRangeFor() are assignments to local objects called ch, but they are not used in the method.

          private static CharProperty caseInsensitiveRangeFor(final int lower,
      final int upper) {
      return new CharProperty() {
      boolean isSatisfiedBy(int ch) {
      return inRange(lower, ch, upper) ||
      inRange(lower, (ch = Character.toUpperCase(ch)), upper) ||
      inRange(lower, (ch = Character.toLowerCase(ch)), upper);}};
          }

      ###@###.### 2005-03-21 12:41:40 GMT

            sherman Xueming Shen
            jloefflm Johann Löfflmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: