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:
Matthias Sohn 2019-10-03 00:47:05 +02:00
commit 285073d554
1 changed files with 2 additions and 4 deletions

View File

@ -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() {