commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r883418 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PoolKey.java
Date Mon, 23 Nov 2009 17:15:27 GMT
Author: sebb
Date: Mon Nov 23 17:15:26 2009
New Revision: 883418

URL: http://svn.apache.org/viewvc?rev=883418&view=rev
Log:
Add serialVersionUID
Make private immutable fields final

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

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PoolKey.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PoolKey.java?rev=883418&r1=883417&r2=883418&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PoolKey.java (original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PoolKey.java Mon
Nov 23 17:15:26 2009
@@ -23,8 +23,10 @@
  * @version $Revision$ $Date$
  */
 class PoolKey implements Serializable {
-    private String datasourceName;
-    private String userPwd;
+    private static final long serialVersionUID = 2252771047542484533L;
+
+    private final String datasourceName;
+    private final String userPwd;
     
     PoolKey(String datasourceName, String userPwd) {
         this.datasourceName = datasourceName;



Mime
View raw message