commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1358255 - /commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
Date Fri, 06 Jul 2012 15:09:18 GMT
Author: simonetripodi
Date: Fri Jul  6 15:09:17 2012
New Revision: 1358255

URL: http://svn.apache.org/viewvc?rev=1358255&view=rev
Log:
columnToPropertyOverrides Map can be final

Modified:
    commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java

Modified: commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java?rev=1358255&r1=1358254&r2=1358255&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
(original)
+++ commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
Fri Jul  6 15:09:17 2012
@@ -68,7 +68,7 @@ public class BeanProcessor {
     /**
      * ResultSet column to bean property name overrides.
      */
-    private Map<String, String> columnToPropertyOverrides = new HashMap<String,
String>();
+    private final Map<String, String> columnToPropertyOverrides;
 
     static {
         primitiveDefaults.put(Integer.TYPE, Integer.valueOf(0));
@@ -85,7 +85,7 @@ public class BeanProcessor {
      * Constructor for BeanProcessor.
      */
     public BeanProcessor() {
-        super();
+        this(new HashMap<String, String>());
     }
 
     /**



Mime
View raw message