From 612ca1ad9dc93eb8f1aa80e6c13ef01cde2b0474 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 28 Jan 2015 09:34:01 +0100 Subject: [PATCH] Use CharSequence instead of String for username in XMPPTCPConnection's constructor. --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index d35f0cf8b..851814928 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -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()); }