Skip to content

Commit 21c7a03

Browse files
authored
fix ignored maxDocLen in deprecated StreamReadConstraints constructor (#1299)
1 parent b92ef00 commit 21c7a03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public Builder maxNestingDepth(final int maxNestingDepth) {
140140
* The length is in input units of the input source, that is, in
141141
* {@code byte}s or {@code char}s.
142142
*
143-
* @param maxDocLen the maximum allowed document if positive number above 0; otherwise
143+
* @param maxDocLen the maximum allowed document length if positive number above 0; otherwise
144144
* ({@code 0} or negative number) means "unlimited".
145145
*
146146
* @return this builder
@@ -256,7 +256,7 @@ public StreamReadConstraints build() {
256256
@Deprecated // since 2.16
257257
protected StreamReadConstraints(final int maxNestingDepth, final long maxDocLen,
258258
final int maxNumLen, final int maxStringLen) {
259-
this(maxNestingDepth, DEFAULT_MAX_DOC_LEN,
259+
this(maxNestingDepth, maxDocLen,
260260
maxNumLen, maxStringLen, DEFAULT_MAX_NAME_LEN);
261261
}
262262

0 commit comments

Comments
 (0)