diff options
author | Lillian Angel <langel@redhat.com> | 2006-06-07 15:22:50 +0000 |
---|---|---|
committer | Lillian Angel <langel@redhat.com> | 2006-06-07 15:22:50 +0000 |
commit | 4904afcf340e29ac369372d001be9388375afcdd (patch) | |
tree | ef86b490611518670e7791dd5b3d6ed764e90cd6 /java | |
parent | 57048824769c71f6ebbd45fce8d864a17fdff5f8 (diff) | |
download | classpath-4904afcf340e29ac369372d001be9388375afcdd.tar.gz |
2006-06-07 Lillian Angel <langel@redhat.com>
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(FreetypeGlyphVector): Removed assignment. Caused compilation error.
* java/lang/String.java
(codePointCount): Fixed check to match API. Shouldn't throw exception
if end == count. end is 1 more than the endIndex, so end == count is
possible.
Diffstat (limited to 'java')
-rw-r--r-- | java/lang/String.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/lang/String.java b/java/lang/String.java index 199dfba35..dbc3f7d8b 100644 --- a/java/lang/String.java +++ b/java/lang/String.java @@ -1820,7 +1820,7 @@ public final class String implements Serializable, Comparable, CharSequence */ public synchronized int codePointCount(int start, int end) { - if (start < 0 || end >= count || start > end) + if (start < 0 || end > count || start > end) throw new StringIndexOutOfBoundsException(); start += offset; |