From b6f7d019c775cd4a22e0f7f642e33259f904f2f4 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 18 Mar 2017 13:18:44 +0100 Subject: [PATCH] Use SASLMechanism.toString() in getRegisterdSASLMechanisms() of SASLAuthentication. --- .../main/java/org/jivesoftware/smack/SASLAuthentication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java index ff22d3790..2a0f76119 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java @@ -93,7 +93,7 @@ public final class SASLAuthentication { Map answer = new LinkedHashMap(); synchronized (REGISTERED_MECHANISMS) { for (SASLMechanism mechanism : REGISTERED_MECHANISMS) { - answer.put(mechanism.getClass().getName(), mechanism.getName()); + answer.put(mechanism.getClass().getName(), mechanism.toString()); } } return answer;