Navigation Menu

Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Apr 20, 2018
1 parent 27943e3 commit 34efcb4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
Expand Up @@ -355,9 +355,11 @@ protected ObjectMapper(MapperBuilder<?,?> builder)
_subtypeResolver = builder.subtypeResolver(); _subtypeResolver = builder.subtypeResolver();


// Ser/deser framework factories // Ser/deser framework factories
SerializerFactory sf = builder.serializerFactory(); {
_serializationContexts = builder.serializationContexts() SerializerFactory sf = builder.serializerFactory();
.forMapper(this, _streamFactory, sf); _serializationContexts = builder.serializationContexts()
.forMapper(this, _streamFactory, sf);
}


_deserializationContext = builder.deserializationContext(); _deserializationContext = builder.deserializationContext();
_injectableValues = builder.injectableValues(); _injectableValues = builder.injectableValues();
Expand Down
Expand Up @@ -66,12 +66,12 @@ protected SerializationContexts(TokenStreamFactory tsf,
* (as opposed to coming into existence during building, module registration). * (as opposed to coming into existence during building, module registration).
* Necessary usually to initialize non-configuration state, such as caching. * Necessary usually to initialize non-configuration state, such as caching.
*/ */
public SerializationContexts forMapper(ObjectMapper mapper, public SerializationContexts forMapper(Object mapper,
TokenStreamFactory tsf, SerializerFactory serializerFactory) { TokenStreamFactory tsf, SerializerFactory serializerFactory) {
return forMapper(mapper, tsf, serializerFactory, _defaultCache()); return forMapper(mapper, tsf, serializerFactory, _defaultCache());
} }


protected abstract SerializationContexts forMapper(ObjectMapper mapper, protected abstract SerializationContexts forMapper(Object mapper,
TokenStreamFactory tsf, SerializerFactory serializerFactory, TokenStreamFactory tsf, SerializerFactory serializerFactory,
SerializerCache cache); SerializerCache cache);


Expand Down Expand Up @@ -142,7 +142,7 @@ public DefaultImpl(TokenStreamFactory tsf,
} }


@Override @Override
public SerializationContexts forMapper(ObjectMapper mapper, public SerializationContexts forMapper(Object mapper,
TokenStreamFactory tsf, SerializerFactory serializerFactory, TokenStreamFactory tsf, SerializerFactory serializerFactory,
SerializerCache cache) { SerializerCache cache) {
return new DefaultImpl(tsf, serializerFactory, cache); return new DefaultImpl(tsf, serializerFactory, cache);
Expand Down
Expand Up @@ -17,9 +17,9 @@ public abstract class SubtypeResolver
implements Snapshottable<SubtypeResolver> implements Snapshottable<SubtypeResolver>
{ {
/* /*
/********************************************************** /**********************************************************************
/* Copyable /* Snapshottable
/********************************************************** /**********************************************************************
*/ */


/** /**
Expand All @@ -33,9 +33,9 @@ public abstract class SubtypeResolver
public abstract SubtypeResolver snapshot(); public abstract SubtypeResolver snapshot();


/* /*
/********************************************************** /**********************************************************************
/* Methods for registering external subtype definitions /* Methods for registering external subtype definitions
/********************************************************** /**********************************************************************
*/ */


/** /**
Expand All @@ -50,9 +50,9 @@ public abstract class SubtypeResolver
public abstract SubtypeResolver registerSubtypes(Collection<Class<?>> subtypes); public abstract SubtypeResolver registerSubtypes(Collection<Class<?>> subtypes);


/* /*
/********************************************************** /**********************************************************************
/* Subtype resolution /* Subtype resolution
/********************************************************** /**********************************************************************
*/ */


/** /**
Expand Down
Expand Up @@ -45,7 +45,7 @@ public MyNullSerializerContexts(TokenStreamFactory tsf, SerializerFactory serial
} }


@Override @Override
public SerializationContexts forMapper(ObjectMapper mapper, public SerializationContexts forMapper(Object mapper,
TokenStreamFactory tsf, SerializerFactory serializerFactory, TokenStreamFactory tsf, SerializerFactory serializerFactory,
SerializerCache cache) { SerializerCache cache) {
return new MyNullSerializerContexts(tsf, serializerFactory, cache); return new MyNullSerializerContexts(tsf, serializerFactory, cache);
Expand Down

0 comments on commit 34efcb4

Please sign in to comment.