1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-27 14:32:06 +01:00

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

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");