1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 02:27:58 +01:00

Use CharSequence instead of String for username

in XMPPTCPConnection's constructor.
This commit is contained in:
Florian Schmaus 2015-01-28 09:34:01 +01:00
parent 37081b2810
commit 612ca1ad9d

View file

@ -293,7 +293,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
* @param password
* @param serviceName
*/
public XMPPTCPConnection(String username, String password, String serviceName) {
public XMPPTCPConnection(CharSequence username, String password, String serviceName) {
this(XMPPTCPConnectionConfiguration.builder().setUsernameAndPassword(username, password).setServiceName(
serviceName).build());
}