hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r652728 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
Date Fri, 02 May 2008 01:28:42 GMT
Author: sebb
Date: Thu May  1 18:28:39 2008
New Revision: 652728

URL: http://svn.apache.org/viewvc?rev=652728&view=rev
Log:
Make field final so it is guaranteed to be published

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java?rev=652728&r1=652727&r2=652728&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
Thu May  1 18:28:39 2008
@@ -64,6 +64,7 @@
             this.password = usernamePassword.substring(atColon + 1);
         } else {
             this.userName = usernamePassword;
+            this.password = null;
         }
     }
 
@@ -88,13 +89,13 @@
     /**
      * User name.
      */
-    private String userName;
+    private final String userName;
 
 
     /**
      * Password.
      */
-    private String password;
+    private final String password;
 
 
     // ------------------------------------------------------------- Properties



Mime
View raw message