mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Merge pull request #261 from jentfoo/master
Change ByteArrayOutputStream's toString function to match openJDK's expectation
This commit is contained in:
commit
b52f4389b2
@ -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