@@ -225,12 +225,12 @@ protected Object readResolve() {
225225 * needed to allow modules to add more custom type handling
226226 * (mostly to support types of non-Java JVM languages)
227227 */
228- protected /* final*/ TypeFactory _typeFactory ;
228+ protected final TypeFactory _typeFactory ;
229229
230230 /**
231231 * Provider for values to inject in deserialized POJOs.
232232 */
233- protected InjectableValues _injectableValues ;
233+ protected final InjectableValues _injectableValues ;
234234
235235 /**
236236 * Thing used for registering sub-types, resolving them to
@@ -269,6 +269,7 @@ protected Object readResolve() {
269269 /**********************************************************
270270 */
271271
272+ // !!! TODO 15-Mar-2018: Only mutable for Default Typing
272273 /**
273274 * Configuration object that defines basic global
274275 * settings for the serialization process
@@ -290,14 +291,15 @@ protected Object readResolve() {
290291 /**
291292 * Serializer factory used for constructing serializers.
292293 */
293- protected SerializerFactory _serializerFactory ;
294+ protected final SerializerFactory _serializerFactory ;
294295
295296 /*
296297 /**********************************************************
297298 /* Configuration settings, deserialization
298299 /**********************************************************
299300 */
300301
302+ // !!! TODO 15-Mar-2018: Only mutable for Default Typing
301303 /**
302304 * Configuration object that defines basic global
303305 * settings for the serialization process
@@ -309,7 +311,7 @@ protected Object readResolve() {
309311 * sub-classes. Contains references to objects needed for
310312 * deserialization construction (cache, factory).
311313 */
312- protected DefaultDeserializationContext _deserializationContext ;
314+ protected final DefaultDeserializationContext _deserializationContext ;
313315
314316 /*
315317 /**********************************************************
@@ -339,7 +341,7 @@ protected Object readResolve() {
339341 * no type information is needed for base type), or type-wrapped
340342 * deserializers (if it is needed)
341343 */
342- final protected ConcurrentHashMap <JavaType , JsonDeserializer <Object >> _rootDeserializers
344+ protected final ConcurrentHashMap <JavaType , JsonDeserializer <Object >> _rootDeserializers
343345 = new ConcurrentHashMap <JavaType , JsonDeserializer <Object >>(64 , 0.6f , 2 );
344346
345347 /*
@@ -354,7 +356,7 @@ protected Object readResolve() {
354356 *
355357 * @since 3.0
356358 */
357- final protected MapperBuilderState _savedBuilderState ;
359+ protected final MapperBuilderState _savedBuilderState ;
358360
359361 /*
360362 /**********************************************************************
@@ -506,10 +508,22 @@ public Version version() {
506508 /**********************************************************************
507509 */
508510
511+ /**
512+ * Accessor for internal configuration object that contains settings for
513+ * serialization operations (<code>writeValue(...)</code> methods)
514+ *<br>
515+ * NOTE: Not to be used by application code; needed by some tests
516+ */
509517 public SerializationConfig serializationConfig () {
510518 return _serializationConfig ;
511519 }
512520
521+ /**
522+ * Accessor for internal configuration object that contains settings for
523+ * deserialization operations (<code>readValue(...)</code> methods)
524+ *<br>
525+ * NOTE: Not to be used by application code; needed by some tests
526+ */
513527 public DeserializationConfig deserializationConfig () {
514528 return _deserializationConfig ;
515529 }
@@ -553,13 +567,6 @@ public InjectableValues getInjectableValues() {
553567 return _injectableValues ;
554568 }
555569
556- /**
557- * Method for accessing subtype resolver in use.
558- */
559- public SubtypeResolver getSubtypeResolver () {
560- return _subtypeResolver ;
561- }
562-
563570 /*
564571 /**********************************************************************
565572 /* Configuration: ser/deser factory, provider access
@@ -570,15 +577,6 @@ public SerializerProvider getSerializerProvider() {
570577 return _serializerProvider ;
571578 }
572579
573- /**
574- * Accessor for constructing and returning a {@link SerializerProvider}
575- * instance that may be used for accessing serializers. This is same as
576- * calling {@link #getSerializerProvider}, and calling <code>createInstance</code> on it.
577- */
578- public SerializerProvider serializerProviderInstance () {
579- return _serializerProvider ();
580- }
581-
582580 /*
583581 /**********************************************************************
584582 /* Configuration, access to type factory, type resolution
@@ -600,17 +598,6 @@ public TypeFactory getTypeFactory() {
600598 public JavaType constructType (Type t ) {
601599 return _typeFactory .constructType (t );
602600 }
603-
604- /*
605- /**********************************************************************
606- /* Configuration: mix-in annotations
607- /**********************************************************************
608- */
609-
610- // For testing only:
611- public MixInHandler mixInHandler () {
612- return _mixIns ;
613- }
614601
615602 /*
616603 /**********************************************************************
0 commit comments