Make field final so it is guaranteed to be published

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2008-05-02 01:28:39 +00:00
parent 4794436347
commit 2b96bbd678

View File

@ -64,6 +64,7 @@ public UsernamePasswordCredentials(String usernamePassword) {
this.password = usernamePassword.substring(atColon + 1);
} else {
this.userName = usernamePassword;
this.password = null;
}
}
@ -88,13 +89,13 @@ public UsernamePasswordCredentials(String userName, String password) {
/**
* User name.
*/
private String userName;
private final String userName;
/**
* Password.
*/
private String password;
private final String password;
// ------------------------------------------------------------- Properties