diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2021-06-07 00:28:48 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-06-07 00:28:48 +0200 |
commit | ae692779ce69155c970bcedaabe2edc3366fe6a2 (patch) | |
tree | 0dbb6cf54228b60d00702cc2fe35d9b1f1c36f9e /org.eclipse.jgit | |
parent | c2f9acdc32a5c675a1a307dc5e4e5ba93be5a7f9 (diff) | |
download | jgit-ae692779ce69155c970bcedaabe2edc3366fe6a2.tar.gz jgit-ae692779ce69155c970bcedaabe2edc3366fe6a2.zip |
[errorprone] Fix warning InputStreamSlowMultibyteRead
Change-Id: I50dace6e310016c04f524eb0cfcce0da05fadd47
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryDeltaInputStream.java | 5 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryHunkInputStream.java | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryDeltaInputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryDeltaInputStream.java index 7f0d87f0da..9eceeb8117 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryDeltaInputStream.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryDeltaInputStream.java @@ -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 diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryHunkInputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryHunkInputStream.java index 57b2d7a4b2..4f940d77a0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryHunkInputStream.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/BinaryHunkInputStream.java @@ -59,6 +59,11 @@ public class BinaryHunkInputStream extends InputStream { } @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(); buffer = null; |