mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
fix return value of ByteArrayOutputStream.size()
This commit is contained in:
parent
5b6a63cbca
commit
d24b633665
@ -15,7 +15,7 @@ public class ByteArrayOutputStream extends OutputStream {
|
||||
}
|
||||
|
||||
public int size() {
|
||||
return position;
|
||||
return length;
|
||||
}
|
||||
|
||||
public void write(int c) {
|
||||
@ -65,7 +65,6 @@ public class ByteArrayOutputStream extends OutputStream {
|
||||
buffer = null;
|
||||
position = 0;
|
||||
chain = new Cell(b, 0, p, chain);
|
||||
length -= p;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user