2003-10-08 Michael Koch <konqueror@gmx.de>
* java/text/SimpleDateFormat.java (compileFormat): Replace Character.isLetter() test with Character.isLowerCase() || Character.isUpperCase(). From-SVN: r72239
This commit is contained in:
parent
d791274435
commit
a498cba506
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2003-10-08 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* java/text/SimpleDateFormat.java
|
||||||
|
(compileFormat): Replace Character.isLetter() test with
|
||||||
|
Character.isLowerCase() || Character.isUpperCase().
|
||||||
|
|
||||||
2003-10-08 Tom Tromey <tromey@redhat.com>
|
2003-10-08 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* java/lang/StrictMath.java (toDegrees): Multiply before
|
* java/lang/StrictMath.java (toDegrees): Multiply before
|
||||||
|
|
|
@ -117,7 +117,8 @@ public class SimpleDateFormat extends DateFormat
|
||||||
field = formatData.getLocalPatternChars().indexOf(thisChar);
|
field = formatData.getLocalPatternChars().indexOf(thisChar);
|
||||||
if (field == -1) {
|
if (field == -1) {
|
||||||
current = null;
|
current = null;
|
||||||
if (Character.isLetter(thisChar)) {
|
if (Character.isLowerCase (thisChar)
|
||||||
|
|| Character.isUpperCase (thisChar)) {
|
||||||
// Not a valid letter
|
// Not a valid letter
|
||||||
tokens.add(new FieldSizePair(-1,0));
|
tokens.add(new FieldSizePair(-1,0));
|
||||||
} else if (thisChar == '\'') {
|
} else if (thisChar == '\'') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue