We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6bb0f6 commit c21d33dCopy full SHA for c21d33d
src/main/java/tools/jackson/core/io/UTF32Reader.java
@@ -114,13 +114,13 @@ public int read() throws IOException {
114
public int read(char[] cbuf, int start, int len) throws IOException
115
{
116
Objects.requireNonNull(cbuf, "cbuf");
117
- // Already EOF?
118
- if (_buffer == null) { return -1; }
119
- if (len < 1) { return len; }
120
// Let's then ensure there's enough room...
121
if (start < 0 || len < 0 || start > (cbuf.length - len)) {
122
reportBounds(cbuf, start, len);
123
}
+ // Already EOF?
+ if (_buffer == null) { return -1; }
+ if (len < 1) { return len; }
124
125
int outPtr = start;
126
final int outEnd = len+start;
0 commit comments