Skip to content

Commit 92cd5af

Browse files
committed
Merge pull request #656 from kazuki43zoo/polishing-Configuration
Polishing the Configuration
2 parents c938071 + 8b0ea74 commit 92cd5af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/apache/ibatis/session/Configuration.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ public class Configuration {
123123
protected ReflectorFactory reflectorFactory = new DefaultReflectorFactory();
124124
protected ObjectFactory objectFactory = new DefaultObjectFactory();
125125
protected ObjectWrapperFactory objectWrapperFactory = new DefaultObjectWrapperFactory();
126-
protected MapperRegistry mapperRegistry = new MapperRegistry(this);
127126

128127
protected boolean lazyLoadingEnabled = false;
129128
protected ProxyFactory proxyFactory = new JavassistProxyFactory(); // #224 Using internal Javassist instead of OGNL
@@ -137,6 +136,7 @@ public class Configuration {
137136
*/
138137
protected Class<?> configurationFactory;
139138

139+
protected final MapperRegistry mapperRegistry = new MapperRegistry(this);
140140
protected final InterceptorChain interceptorChain = new InterceptorChain();
141141
protected final TypeHandlerRegistry typeHandlerRegistry = new TypeHandlerRegistry();
142142
protected final TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry();
@@ -809,7 +809,7 @@ protected void checkLocallyForDiscriminatedNestedResultMaps(ResultMap rm) {
809809
protected static class StrictMap<V> extends HashMap<String, V> {
810810

811811
private static final long serialVersionUID = -4950446264854982944L;
812-
private String name;
812+
private final String name;
813813

814814
public StrictMap(String name, int initialCapacity, float loadFactor) {
815815
super(initialCapacity, loadFactor);
@@ -860,12 +860,12 @@ public V get(Object key) {
860860
}
861861

862862
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];
865865
}
866866

867867
protected static class Ambiguity {
868-
private String subject;
868+
final private String subject;
869869

870870
public Ambiguity(String subject) {
871871
this.subject = subject;

0 commit comments

Comments
 (0)