You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by cb...@apache.org on 2009/10/04 05:41:43 UTC

svn commit: r821460 - /ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java

Author: cbegin
Date: Sun Oct  4 03:41:43 2009
New Revision: 821460

URL: http://svn.apache.org/viewvc?rev=821460&view=rev
Log:
cleaned up initializations of fields.

Modified:
    ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java

Modified: ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java
URL: http://svn.apache.org/viewvc/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java?rev=821460&r1=821459&r2=821460&view=diff
==============================================================================
--- ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java (original)
+++ ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java Sun Oct  4 03:41:43 2009
@@ -33,8 +33,8 @@
   private final TypeHandlerRegistry typeHandlerRegistry;
   private final ObjectFactory objectFactory;
 
-  private final Map<CacheKey,Set<CacheKey>> localRowValueCaches = new HashMap<CacheKey,Set<CacheKey>>();
-  private final Map<CacheKey,Object> globalRowValueCache = new HashMap<CacheKey,Object>();
+  private final Map<CacheKey,Set<CacheKey>> localRowValueCaches;
+  private final Map<CacheKey,Object> globalRowValueCache;
   private static final CacheKey NULL_ROW_KEY = new CacheKey();
 
   public DefaultResultSetHandler(Executor executor, MappedStatement mappedStatement, ParameterHandler parameterHandler, ResultHandler resultHandler, BoundSql boundSql, int offset, int limit) {
@@ -47,6 +47,8 @@
     this.typeHandlerRegistry = configuration.getTypeHandlerRegistry();
     this.objectFactory = configuration.getObjectFactory();
     this.resultHandler = resultHandler;
+    this.localRowValueCaches = new HashMap<CacheKey,Set<CacheKey>>();
+    this.globalRowValueCache = new HashMap<CacheKey,Object>();
   }
 
   //