mirror of
https://github.com/corda/corda.git
synced 2025-06-16 06:08:13 +00:00
Fix bug in StringBuilder.insert()
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user