commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r883408 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/UserPassKey.java
Date Mon, 23 Nov 2009 16:57:04 GMT
Author: sebb
Date: Mon Nov 23 16:57:03 2009
New Revision: 883408

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

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

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/UserPassKey.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/UserPassKey.java?rev=883408&r1=883407&r2=883408&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/UserPassKey.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/UserPassKey.java
Mon Nov 23 16:57:03 2009
@@ -24,8 +24,9 @@
  * @version $Revision$ $Date$
  */
 class UserPassKey implements Serializable {
-    private String password;
-    private String username;
+    private static final long serialVersionUID = 5142970911626584817L;
+    private final String password;
+    private final String username;
     
     UserPassKey(String username, String password) {
         this.username = username;



Mime
View raw message