From 313e53739469066ed6eee861fac49906e6156c57 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 16 Jan 2015 17:26:11 +0100 Subject: [PATCH] Fix 'condtions' typo in StreamError --- .../main/java/org/jivesoftware/smack/packet/StreamError.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java index 1ac8f65c9..4530e1ce2 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java @@ -149,7 +149,7 @@ public class StreamError extends AbstractError implements PlainStreamElement { } /** - * The defined stream error condtions, see RFC 6120 § 4.9.3 + * The defined stream error conditions, see RFC 6120 § 4.9.3 * */ public enum Condition { @@ -190,7 +190,8 @@ public class StreamError extends AbstractError implements PlainStreamElement { try { condition = Condition.valueOf(string); } catch (Exception e) { - throw new IllegalStateException("Could not transform string '" + string + "' to XMPPErrorConditoin", e); + throw new IllegalStateException("Could not transform string '" + string + + "' to XMPPErrorCondition", e); } return condition; }