mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-25 19:55:35 +00:00
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:
parent
4794436347
commit
2b96bbd678
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user