You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/11/22 00:56:28 UTC

svn commit: r883015 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java

Author: sebb
Date: Sat Nov 21 23:56:27 2009
New Revision: 883015

URL: http://svn.apache.org/viewvc?rev=883015&view=rev
Log:
Make _pool and _key private and final

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java?rev=883015&r1=883014&r2=883015&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java (original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java Sat Nov 21 23:56:27 2009
@@ -40,15 +40,17 @@
     /**
      * The {@link KeyedObjectPool} from which this CallableStatement was obtained.
      */
-    protected KeyedObjectPool _pool = null;
+    private final KeyedObjectPool _pool;
 
     /**
      * Key for this statement in the containing {@link KeyedObjectPool}.
      */
-    protected Object _key = null;
+    private final Object _key;
 
     public PoolableCallableStatement(DelegatingConnection c, CallableStatement s) {
         super(c, s);
+        _key = null;
+        _pool = null;
     }
 
     /**