Browse Source

[errorprone] Fix warning InputStreamSlowMultibyteRead

Change-Id: I50dace6e310016c04f524eb0cfcce0da05fadd47
tags/v5.12.0.202106070339-r
Matthias Sohn 2 years ago
parent
commit
ae692779ce

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryDeltaInputStream.java View File

@@ -82,6 +82,11 @@ public class BinaryDeltaInputStream extends InputStream {
return b;
}

@Override
public int read(byte[] b, int off, int len) throws IOException {
return super.read(b, off, len);
}

private void initialize() throws IOException {
long baseSize = readVarInt(delta);
if (baseSize > Integer.MAX_VALUE || baseSize < 0

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryHunkInputStream.java View File

@@ -58,6 +58,11 @@ public class BinaryHunkInputStream extends InputStream {
return -1;
}

@Override
public int read(byte[] b, int off, int len) throws IOException {
return super.read(b, off, len);
}

@Override
public void close() throws IOException {
in.close();

Loading…
Cancel
Save