From de783dce735aa9042d5942cd48f123522f1c1cd7 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 18 Mar 2017 13:18:13 +0100 Subject: [PATCH] Add SASLMechanism.toString() --- .../main/java/org/jivesoftware/smack/sasl/SASLMechanism.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java b/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java index c2cc66e3a..d2ef35e9d 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java @@ -314,4 +314,9 @@ public abstract class SASLMechanism implements Comparable { } return string; } + + @Override + public final String toString() { + return "SASL Mech: " + getName() + ", Prio: " + getPriority(); + } }