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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b35
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: