mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Fix bug in StringBuilder.insert()
This commit is contained in:
parent
1bca2e9e5d
commit
89bc3bc4e7
@ -118,7 +118,7 @@ public class StringBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public StringBuilder insert(int i, String s) {
|
public StringBuilder insert(int i, String s) {
|
||||||
if (i < 0 || i >= length) {
|
if (i < 0 || i > length) {
|
||||||
throw new IndexOutOfBoundsException();
|
throw new IndexOutOfBoundsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user