Skip to content

Commit

Permalink
fix ignored maxDocLen in deprecated StreamReadConstraints constructor (
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jun 10, 2024
1 parent b92ef00 commit 21c7a03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public Builder maxNestingDepth(final int maxNestingDepth) {
* The length is in input units of the input source, that is, in
* {@code byte}s or {@code char}s.
*
* @param maxDocLen the maximum allowed document if positive number above 0; otherwise
* @param maxDocLen the maximum allowed document length if positive number above 0; otherwise
* ({@code 0} or negative number) means "unlimited".
*
* @return this builder
Expand Down Expand Up @@ -256,7 +256,7 @@ public StreamReadConstraints build() {
@Deprecated // since 2.16
protected StreamReadConstraints(final int maxNestingDepth, final long maxDocLen,
final int maxNumLen, final int maxStringLen) {
this(maxNestingDepth, DEFAULT_MAX_DOC_LEN,
this(maxNestingDepth, maxDocLen,
maxNumLen, maxStringLen, DEFAULT_MAX_NAME_LEN);
}

Expand Down

0 comments on commit 21c7a03

Please sign in to comment.