mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +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) {
|
||||
if (i < 0 || i >= length) {
|
||||
if (i < 0 || i > length) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user