]> source.dussan.org Git - jgit.git/commit
Override int read(byte[], int, int) on test instances of InputStream 16/130216/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 1 Oct 2018 02:18:45 +0000 (11:18 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 1 Oct 2018 02:19:04 +0000 (11:19 +0900)
commit65d6bb073aba072a17c5324a48972b02861bf4e2
treeaa574789938b7dda1ef2b2e25e0328fdf7146052
parent731d638f69f017eb0471888f7a88f661e258e3ba
Override int read(byte[], int, int) on test instances of InputStream

This probably doesn't provide any benefit for the tests, but gets
rid of a warning from Error Prone.

See https://errorprone.info/bugpattern/InputStreamSlowMultibyteRead

Change-Id: I584d2e0d18475fad38747b688af6301c423f54a7
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectLoaderTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/UnionInputStreamTest.java