mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +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() {
|
public int size() {
|
||||||
return position;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void write(int c) {
|
public void write(int c) {
|
||||||
@ -65,7 +65,6 @@ public class ByteArrayOutputStream extends OutputStream {
|
|||||||
buffer = null;
|
buffer = null;
|
||||||
position = 0;
|
position = 0;
|
||||||
chain = new Cell(b, 0, p, chain);
|
chain = new Cell(b, 0, p, chain);
|
||||||
length -= p;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user