From 93c2b2be260f85648bbc6d22590879cb6aae410b Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 9 May 2018 16:49:23 +0200 Subject: [PATCH] Do not return a Message "default" language if there is none --- .../main/java/org/jivesoftware/smack/packet/Message.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java index e2f9235ee..3eb5dbf94 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java @@ -455,13 +455,7 @@ public final class Message extends Stanza implements TypedCloneable { if (language == null && this.language != null) { return this.language; } - else if (language == null) { - return getDefaultLanguage(); - } - else { - return language; - } - + return language; } @Override