@@ -35,8 +35,6 @@ public final class BaseSettings
3535 */
3636 TimeZone .getTimeZone ("UTC" );
3737
38- private static final int DEFAULT_RADIX = 10 ;
39-
4038 /*
4139 /**********************************************************
4240 /* Configuration settings; introspection, related
@@ -157,28 +155,21 @@ public final class BaseSettings
157155 */
158156 protected final CacheProvider _cacheProvider ;
159157
160- /**
161- * Default radix to use when serializing/deserializing integers to string.
162- *
163- * @since 2.21
164- */
165- protected final int _defaultRadix ;
166-
167158 /*
168159 /**********************************************************
169160 /* Construction
170161 /**********************************************************
171162 */
172163
173164 /**
174- * @since 2.21
165+ * @since 2.19
175166 */
176167 public BaseSettings (ClassIntrospector ci , AnnotationIntrospector ai ,
177168 PropertyNamingStrategy pns , EnumNamingStrategy ens , TypeFactory tf ,
178169 TypeResolverBuilder <?> typer , DateFormat dateFormat , HandlerInstantiator hi ,
179170 Locale locale , TimeZone tz , Base64Variant defaultBase64 ,
180171 PolymorphicTypeValidator ptv , AccessorNamingStrategy .Provider accNaming ,
181- CacheProvider cacheProvider , int defaultRadix )
172+ CacheProvider cacheProvider )
182173 {
183174 _classIntrospector = ci ;
184175 _annotationIntrospector = ai ;
@@ -193,22 +184,7 @@ public BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai,
193184 _defaultBase64 = defaultBase64 ;
194185 _typeValidator = ptv ;
195186 _accessorNaming = accNaming ;
196- _cacheProvider = cacheProvider ;
197- _defaultRadix = defaultRadix ;
198- }
199-
200- /**
201- * @since 2.19
202- * @deprecated since 2.21, use variant that takes defaultRadix
203- */
204- public BaseSettings (ClassIntrospector ci , AnnotationIntrospector ai ,
205- PropertyNamingStrategy pns , EnumNamingStrategy ens , TypeFactory tf ,
206- TypeResolverBuilder <?> typer , DateFormat dateFormat , HandlerInstantiator hi ,
207- Locale locale , TimeZone tz , Base64Variant defaultBase64 ,
208- PolymorphicTypeValidator ptv , AccessorNamingStrategy .Provider accNaming ,
209- CacheProvider cacheProvider )
210- {
211- this (ci , ai , pns , ens , tf , typer , dateFormat , hi , locale , tz , defaultBase64 , ptv , accNaming , cacheProvider , DEFAULT_RADIX );
187+ _cacheProvider = cacheProvider ;;
212188 }
213189
214190 /**
@@ -261,8 +237,7 @@ public BaseSettings copy() {
261237 _defaultBase64 ,
262238 _typeValidator ,
263239 _accessorNaming ,
264- _cacheProvider ,
265- _defaultRadix );
240+ _cacheProvider );
266241 }
267242
268243 /*
@@ -277,7 +252,7 @@ public BaseSettings withClassIntrospector(ClassIntrospector ci) {
277252 }
278253 return new BaseSettings (ci , _annotationIntrospector , _propertyNamingStrategy , _enumNamingStrategy ,
279254 _typeFactory , _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
280- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
255+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
281256 }
282257
283258 public BaseSettings withAnnotationIntrospector (AnnotationIntrospector ai ) {
@@ -286,7 +261,7 @@ public BaseSettings withAnnotationIntrospector(AnnotationIntrospector ai) {
286261 }
287262 return new BaseSettings (_classIntrospector , ai , _propertyNamingStrategy , _enumNamingStrategy ,
288263 _typeFactory , _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
289- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
264+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
290265 }
291266
292267 public BaseSettings withInsertedAnnotationIntrospector (AnnotationIntrospector ai ) {
@@ -313,7 +288,7 @@ public BaseSettings withPropertyNamingStrategy(PropertyNamingStrategy pns) {
313288 }
314289 return new BaseSettings (_classIntrospector , _annotationIntrospector , pns , _enumNamingStrategy ,
315290 _typeFactory , _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
316- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
291+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
317292 }
318293
319294 /**
@@ -325,7 +300,7 @@ public BaseSettings withEnumNamingStrategy(EnumNamingStrategy ens) {
325300 }
326301 return new BaseSettings (_classIntrospector , _annotationIntrospector , _propertyNamingStrategy , ens ,
327302 _typeFactory , _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
328- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
303+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
329304 }
330305
331306 // @since 2.12
@@ -335,7 +310,7 @@ public BaseSettings withAccessorNaming(AccessorNamingStrategy.Provider p) {
335310 }
336311 return new BaseSettings (_classIntrospector , _annotationIntrospector , _propertyNamingStrategy , _enumNamingStrategy ,
337312 _typeFactory , _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
338- _timeZone , _defaultBase64 , _typeValidator , p , _cacheProvider , _defaultRadix );
313+ _timeZone , _defaultBase64 , _typeValidator , p , _cacheProvider );
339314 }
340315
341316 public BaseSettings withTypeFactory (TypeFactory tf ) {
@@ -344,7 +319,7 @@ public BaseSettings withTypeFactory(TypeFactory tf) {
344319 }
345320 return new BaseSettings (_classIntrospector , _annotationIntrospector , _propertyNamingStrategy , _enumNamingStrategy ,
346321 tf , _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
347- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
322+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
348323 }
349324
350325 public BaseSettings withTypeResolverBuilder (TypeResolverBuilder <?> typer ) {
@@ -353,7 +328,7 @@ public BaseSettings withTypeResolverBuilder(TypeResolverBuilder<?> typer) {
353328 }
354329 return new BaseSettings (_classIntrospector , _annotationIntrospector , _propertyNamingStrategy , _enumNamingStrategy ,
355330 _typeFactory , typer , _dateFormat , _handlerInstantiator , _locale ,
356- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
331+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
357332 }
358333
359334 public BaseSettings withDateFormat (DateFormat df ) {
@@ -367,7 +342,7 @@ public BaseSettings withDateFormat(DateFormat df) {
367342 }
368343 return new BaseSettings (_classIntrospector , _annotationIntrospector , _propertyNamingStrategy , _enumNamingStrategy ,
369344 _typeFactory , _typeResolverBuilder , df , _handlerInstantiator , _locale ,
370- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
345+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
371346 }
372347
373348 public BaseSettings withHandlerInstantiator (HandlerInstantiator hi ) {
@@ -376,7 +351,7 @@ public BaseSettings withHandlerInstantiator(HandlerInstantiator hi) {
376351 }
377352 return new BaseSettings (_classIntrospector , _annotationIntrospector , _propertyNamingStrategy , _enumNamingStrategy ,
378353 _typeFactory , _typeResolverBuilder , _dateFormat , hi , _locale ,
379- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
354+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
380355 }
381356
382357 public BaseSettings with (Locale l ) {
@@ -385,7 +360,7 @@ public BaseSettings with(Locale l) {
385360 }
386361 return new BaseSettings (_classIntrospector , _annotationIntrospector , _propertyNamingStrategy , _enumNamingStrategy ,
387362 _typeFactory ,_typeResolverBuilder , _dateFormat , _handlerInstantiator , l ,
388- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
363+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
389364 }
390365
391366 /**
@@ -408,7 +383,7 @@ public BaseSettings with(TimeZone tz)
408383 return new BaseSettings (_classIntrospector , _annotationIntrospector ,
409384 _propertyNamingStrategy , _enumNamingStrategy , _typeFactory ,
410385 _typeResolverBuilder , df , _handlerInstantiator , _locale ,
411- tz , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
386+ tz , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider );
412387 }
413388
414389 /**
@@ -421,7 +396,7 @@ public BaseSettings with(Base64Variant base64) {
421396 return new BaseSettings (_classIntrospector , _annotationIntrospector ,
422397 _propertyNamingStrategy , _enumNamingStrategy , _typeFactory ,
423398 _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
424- _timeZone , base64 , _typeValidator , _accessorNaming , _cacheProvider , _defaultRadix );
399+ _timeZone , base64 , _typeValidator , _accessorNaming , _cacheProvider );
425400 }
426401
427402 /**
@@ -434,7 +409,7 @@ public BaseSettings with(PolymorphicTypeValidator v) {
434409 return new BaseSettings (_classIntrospector , _annotationIntrospector ,
435410 _propertyNamingStrategy , _enumNamingStrategy , _typeFactory ,
436411 _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
437- _timeZone , _defaultBase64 , v , _accessorNaming , _cacheProvider , _defaultRadix );
412+ _timeZone , _defaultBase64 , v , _accessorNaming , _cacheProvider );
438413 }
439414
440415 /**
@@ -450,23 +425,7 @@ public BaseSettings with(CacheProvider cacheProvider) {
450425 return new BaseSettings (_classIntrospector , _annotationIntrospector ,
451426 _propertyNamingStrategy , _enumNamingStrategy , _typeFactory ,
452427 _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
453- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , cacheProvider , _defaultRadix );
454- }
455-
456- /**
457- * Fluent factory for constructing a new instance with provided default radix.
458- *
459- * @return a new instance with provided defaultRadix.
460- * @since 2.21
461- */
462- public BaseSettings withRadix (int defaultRadix ) {
463- if (defaultRadix == _defaultRadix ) {
464- return this ;
465- }
466- return new BaseSettings (_classIntrospector , _annotationIntrospector ,
467- _propertyNamingStrategy , _enumNamingStrategy , _typeFactory ,
468- _typeResolverBuilder , _dateFormat , _handlerInstantiator , _locale ,
469- _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , _cacheProvider , defaultRadix );
428+ _timeZone , _defaultBase64 , _typeValidator , _accessorNaming , cacheProvider );
470429 }
471430
472431 /*
@@ -544,15 +503,6 @@ public boolean hasExplicitTimeZone() {
544503 public Base64Variant getBase64Variant () {
545504 return _defaultBase64 ;
546505 }
547-
548- /**
549- * Method indicating base to use for serializing/deserializing integer numbers as a string.
550- *
551- * @since 2.21
552- */
553- public int getRadix () {
554- return _defaultRadix ;
555- }
556506
557507 /**
558508 * @since 2.16
0 commit comments