mirror of
https://github.com/corda/corda.git
synced 2025-01-23 04:48:09 +00:00
pass start and end indexes to String.getChars in Writer.write, not start and length
This commit is contained in:
parent
42622d0d25
commit
58e3c3013a
@ -26,7 +26,7 @@ public abstract class Writer {
|
|||||||
|
|
||||||
public void write(String s, int offset, int length) throws IOException {
|
public void write(String s, int offset, int length) throws IOException {
|
||||||
char[] b = new char[length];
|
char[] b = new char[length];
|
||||||
s.getChars(offset, length, b, 0);
|
s.getChars(offset, offset + length, b, 0);
|
||||||
write(b);
|
write(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user