mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
Fixed thinko in ByteArrayInputStream
This commit is contained in:
parent
6afb667e03
commit
2fd2df53fd
@ -20,7 +20,7 @@ public class ByteArrayInputStream extends InputStream {
|
||||
}
|
||||
|
||||
public int read(byte[] buffer, int offset, int bufferLength) {
|
||||
if (position < length) {
|
||||
if (position >= length) {
|
||||
return -1;
|
||||
}
|
||||
int remaining = length-position;
|
||||
|
Loading…
Reference in New Issue
Block a user