@@ -123,7 +123,6 @@ public class Configuration {
123
123
protected ReflectorFactory reflectorFactory = new DefaultReflectorFactory ();
124
124
protected ObjectFactory objectFactory = new DefaultObjectFactory ();
125
125
protected ObjectWrapperFactory objectWrapperFactory = new DefaultObjectWrapperFactory ();
126
- protected MapperRegistry mapperRegistry = new MapperRegistry (this );
127
126
128
127
protected boolean lazyLoadingEnabled = false ;
129
128
protected ProxyFactory proxyFactory = new JavassistProxyFactory (); // #224 Using internal Javassist instead of OGNL
@@ -137,6 +136,7 @@ public class Configuration {
137
136
*/
138
137
protected Class <?> configurationFactory ;
139
138
139
+ protected final MapperRegistry mapperRegistry = new MapperRegistry (this );
140
140
protected final InterceptorChain interceptorChain = new InterceptorChain ();
141
141
protected final TypeHandlerRegistry typeHandlerRegistry = new TypeHandlerRegistry ();
142
142
protected final TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry ();
@@ -809,7 +809,7 @@ protected void checkLocallyForDiscriminatedNestedResultMaps(ResultMap rm) {
809
809
protected static class StrictMap <V > extends HashMap <String , V > {
810
810
811
811
private static final long serialVersionUID = -4950446264854982944L ;
812
- private String name ;
812
+ private final String name ;
813
813
814
814
public StrictMap (String name , int initialCapacity , float loadFactor ) {
815
815
super (initialCapacity , loadFactor );
@@ -860,12 +860,12 @@ public V get(Object key) {
860
860
}
861
861
862
862
private String getShortName (String key ) {
863
- final String [] keyparts = key .split ("\\ ." );
864
- return keyparts [ keyparts .length - 1 ];
863
+ final String [] keyParts = key .split ("\\ ." );
864
+ return keyParts [ keyParts .length - 1 ];
865
865
}
866
866
867
867
protected static class Ambiguity {
868
- private String subject ;
868
+ final private String subject ;
869
869
870
870
public Ambiguity (String subject ) {
871
871
this .subject = subject ;
0 commit comments