-
Bug
-
Resolution: Fixed
-
P5
-
6
-
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
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