Merge branch 'stable-5.4' into stable-5.5
* stable-5.4: Prepare 5.3.7-SNAPSHOT builds JGit v5.3.6.201910020505-r Prepare 5.1.13-SNAPSHOT builds JGit v5.1.12.201910011832-r Do not rely on ArrayIndexOutOfBoundsException to detect end of input Change-Id: Ia1070fd170651ce827bc6b876c6764a44ffe60eb Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
commit
285073d554
|
@ -1494,12 +1494,10 @@ private static class StringReader {
|
||||||
}
|
}
|
||||||
|
|
||||||
int read() {
|
int read() {
|
||||||
try {
|
if (pos >= buf.length) {
|
||||||
return buf[pos++];
|
|
||||||
} catch (ArrayIndexOutOfBoundsException e) {
|
|
||||||
pos = buf.length;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
return buf[pos++];
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
|
|
Loading…
Reference in New Issue