Merge branch 'stable-5.3' into stable-5.4
* stable-5.3: 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: Ia621d06a9489ee276c793de9dd4a77f4ff19e2ac Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
commit
430a34e6e1
|
@ -1494,12 +1494,10 @@ private static class StringReader {
|
|||
}
|
||||
|
||||
int read() {
|
||||
try {
|
||||
return buf[pos++];
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
pos = buf.length;
|
||||
if (pos >= buf.length) {
|
||||
return -1;
|
||||
}
|
||||
return buf[pos++];
|
||||
}
|
||||
|
||||
void reset() {
|
||||
|
|
Loading…
Reference in New Issue