mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
classpath progress
This commit is contained in:
@ -173,7 +173,7 @@ public final class String implements Comparable<String> {
|
||||
public void getBytes(int srcOffset, int srcLength,
|
||||
byte[] dst, int dstOffset)
|
||||
{
|
||||
if (srcOffset + srcLength > length) {
|
||||
if (srcOffset < 0 || srcOffset + srcLength > length) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
}
|
||||
|
||||
@ -197,7 +197,7 @@ public final class String implements Comparable<String> {
|
||||
public void getChars(int srcOffset, int srcLength,
|
||||
char[] dst, int dstOffset)
|
||||
{
|
||||
if (srcOffset + srcLength > length) {
|
||||
if (srcOffset < 0 || srcOffset + srcLength > length) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user