mirror of
https://github.com/corda/corda.git
synced 2025-06-14 05:08:18 +00:00
Change ByteArrayOutputStream's toString function to match openJDK's expectation
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user