mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Change ByteArrayOutputStream's toString function to match openJDK's expectation
This commit is contained in:
parent
7273a999bc
commit
a7b548f347
@ -97,6 +97,11 @@ public class ByteArrayOutputStream extends OutputStream {
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new String(toByteArray());
|
||||
}
|
||||
|
||||
public String toString(String encoding) throws UnsupportedEncodingException {
|
||||
return new String(toByteArray(), encoding);
|
||||
|
Loading…
Reference in New Issue
Block a user