Fix typos in XmppConnectionManager

This commit is contained in:
Paul Schaub 2019-09-28 01:12:53 +02:00
parent 92e8f81b3c
commit 03bde438ce
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 2 additions and 2 deletions

View File

@ -336,11 +336,11 @@ public class XmppConnectionManager<DC extends AbstractXMPPConnection> {
break; break;
case inBandRegistration: case inBandRegistration:
if (!accountManager.supportsAccountCreation()) { if (!accountManager.supportsAccountCreation()) {
throw new UnsupportedOperationException("Account creation/registation is not supported"); throw new UnsupportedOperationException("Account creation/registration is not supported");
} }
Set<String> requiredAttributes = accountManager.getAccountAttributes(); Set<String> requiredAttributes = accountManager.getAccountAttributes();
if (requiredAttributes.size() > 4) { if (requiredAttributes.size() > 4) {
throw new IllegalStateException("Unkown required attributes"); throw new IllegalStateException("Unknown required attributes");
} }
Map<String, String> additionalAttributes = new HashMap<>(); Map<String, String> additionalAttributes = new HashMap<>();
additionalAttributes.put("name", "Smack Integration Test"); additionalAttributes.put("name", "Smack Integration Test");