Fix bug in StringBuilder.insert()

This commit is contained in:
Eric Scharff 2008-03-05 12:10:59 -07:00
parent 1bca2e9e5d
commit 89bc3bc4e7

View File

@ -118,7 +118,7 @@ public class StringBuilder {
}
public StringBuilder insert(int i, String s) {
if (i < 0 || i >= length) {
if (i < 0 || i > length) {
throw new IndexOutOfBoundsException();
}