@@ -125,26 +125,6 @@ public class IOContext
125
125
/**********************************************************************
126
126
*/
127
127
128
- /**
129
- * Main constructor to use.
130
- *
131
- * @param src constraints for streaming reads
132
- * @param swc constraints for streaming writes
133
- * @param br BufferRecycler to use, if any ({@code null} if none)
134
- * @param contentRef Input source reference for location reporting
135
- * @param managedResource Whether input source is managed (owned) by Jackson library
136
- *
137
- * @since 2.16
138
- * @deprecated Since 2.16, use {@link #IOContext(StreamReadConstraints, StreamWriteConstraints, BufferRecycler,
139
- * ContentReference, boolean, ErrorReportConfiguration)} instead.
140
- */
141
- @ Deprecated
142
- public IOContext (StreamReadConstraints src , StreamWriteConstraints swc , BufferRecycler br ,
143
- ContentReference contentRef , boolean managedResource )
144
- {
145
- this (src , swc , br , contentRef , managedResource , ErrorReportConfiguration .defaults ());
146
- }
147
-
148
128
/**
149
129
* Main constructor to use.
150
130
*
@@ -157,46 +137,62 @@ public IOContext(StreamReadConstraints src, StreamWriteConstraints swc, BufferRe
157
137
*
158
138
* @since 2.16
159
139
*/
160
- public IOContext (StreamReadConstraints src , StreamWriteConstraints swc , BufferRecycler br ,
161
- ContentReference contentRef , boolean managedResource , ErrorReportConfiguration erc )
140
+ public IOContext (StreamReadConstraints src , StreamWriteConstraints swc , ErrorReportConfiguration erc ,
141
+ BufferRecycler br , ContentReference contentRef , boolean managedResource )
162
142
{
163
143
_streamReadConstraints = src ;
164
144
_streamWriteConstraints = swc ;
145
+ _errorReportConfiguration = erc ;
165
146
_bufferRecycler = br ;
166
147
_contentReference = contentRef ;
167
148
_sourceRef = contentRef .getRawContent ();
168
149
_managedResource = managedResource ;
169
- _errorReportConfiguration = erc ;
170
150
}
171
151
172
152
/**
153
+ * Deprecated legacy constructor.
154
+ *
173
155
* @param src constraints for streaming reads
174
156
* @param br BufferRecycler to use, if any ({@code null} if none)
175
157
* @param contentRef Input source reference for location reporting
176
158
* @param managedResource Whether input source is managed (owned) by Jackson library
177
159
*
178
160
* @since 2.15
179
- * @deprecated Since 2.16. Use {@link #IOContext(StreamReadConstraints, StreamWriteConstraints, BufferRecycler,
180
- * ContentReference, boolean, ErrorReportConfiguration )} instead.
161
+ * @deprecated Since 2.16. Use {@link #IOContext(StreamReadConstraints, StreamWriteConstraints,
162
+ * ErrorReportConfiguration, BufferRecycler, ContentReference, boolean )} instead.
181
163
*/
182
164
@ Deprecated
183
165
public IOContext (StreamReadConstraints src , BufferRecycler br ,
184
166
ContentReference contentRef , boolean managedResource )
185
167
{
186
- this (src , StreamWriteConstraints .defaults (), br , contentRef , managedResource , ErrorReportConfiguration .defaults ());
168
+ this (src , StreamWriteConstraints .defaults (), ErrorReportConfiguration .defaults (),
169
+ br , contentRef , managedResource );
170
+ }
171
+
172
+ @ Deprecated // In 2.16: remove ASAP
173
+ public IOContext (StreamReadConstraints src , StreamWriteConstraints swc ,
174
+ BufferRecycler br , ContentReference contentRef , boolean managedResource )
175
+ {
176
+ this (src , swc , ErrorReportConfiguration .defaults (),
177
+ br , contentRef , managedResource );
187
178
}
188
179
189
180
/**
181
+ * Deprecated legacy constructor.
182
+ *
190
183
* @param br BufferRecycler to use, if any ({@code null} if none)
191
184
* @param contentRef Input source reference for location reporting
192
185
* @param managedResource Whether input source is managed (owned) by Jackson library
193
186
*
194
187
* @since 2.13
188
+ * @deprecated Since 2.15. Use {@link #IOContext(StreamReadConstraints, StreamWriteConstraints,
189
+ * ErrorReportConfiguration, BufferRecycler, ContentReference, boolean)} instead.
195
190
*/
196
191
@ Deprecated // since 2.15
197
192
public IOContext (BufferRecycler br , ContentReference contentRef , boolean managedResource )
198
193
{
199
- this (null , null , br , contentRef , managedResource );
194
+ this (StreamReadConstraints .defaults (), StreamWriteConstraints .defaults (), ErrorReportConfiguration .defaults (),
195
+ br , contentRef , managedResource );
200
196
}
201
197
202
198
@ Deprecated // since 2.13
0 commit comments