LfsFactory#LfsInputStream: Override int read(byte[], int, int)

According to Error Prone, the class should also override:

  int read(byte[], int, int)

otherwise multi-byte reads from this input stream are likely to be slow.

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

Change-Id: I33ab8cd30013447f2a0363b3a7b1424b79cb1818
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Pursehouse 2018-10-01 11:16:05 +09:00
parent 1f4ab45166
commit 731d638f69
1 changed files with 5 additions and 0 deletions

View File

@ -294,6 +294,11 @@ public int read() throws IOException {
return stream.read();
}
@Override
public int read(byte b[], int off, int len) throws IOException {
return stream.read(b, off, len);
}
/**
* @return the length of the stream
*/