diff options
Diffstat (limited to 'libjava/java/lang/String.java')
-rw-r--r-- | libjava/java/lang/String.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/lang/String.java b/libjava/java/lang/String.java index 3e0bfbe..bd75797 100644 --- a/libjava/java/lang/String.java +++ b/libjava/java/lang/String.java @@ -1319,7 +1319,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(); int count = 0; |