Skip to content

Commit

Permalink
Minor change to align with 2.16 passing of StreamRead/WriteConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 20, 2023
1 parent 38fea5f commit 61a44e0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/com/fasterxml/jackson/core/io/IOContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public class IOContext implements AutoCloseable
* @since 2.16
*/
public IOContext(StreamReadConstraints src, StreamWriteConstraints swc, ErrorReportConfiguration erc,
ContentReference contentRef, boolean managedResource)
ContentReference contentRef, boolean managedResource)
{
this(src, swc, erc, BufferRecyclerPool.acquireBufferRecycler(), contentRef, managedResource);
}
Expand All @@ -157,19 +157,17 @@ public IOContext(StreamReadConstraints src, StreamWriteConstraints swc, ErrorRep
*/
@Deprecated
public IOContext(StreamReadConstraints src, StreamWriteConstraints swc, ErrorReportConfiguration erc,
BufferRecycler br, ContentReference contentRef, boolean managedResource)
BufferRecycler br, ContentReference contentRef, boolean managedResource)
{
_streamReadConstraints = (src == null) ?
StreamReadConstraints.defaults() : src;
_streamWriteConstraints = (swc == null) ?
StreamWriteConstraints.defaults() : swc;
_streamReadConstraints = src;
_streamWriteConstraints = swc;
_errorReportConfiguration = erc;
_bufferRecycler = br;
_contentReference = contentRef;
_sourceRef = contentRef.getRawContent();
_managedResource = managedResource;
}

/**
* Deprecated legacy constructor.
*
Expand Down

0 comments on commit 61a44e0

Please sign in to comment.