From 5a2109e73fd346baa5aba2ff64e351b8a98e30d4 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 23 Feb 2019 23:40:27 +0100 Subject: [PATCH] Move cast in extra line in ADD_ORIGIN_ID_INTERCEPTOR --- .../jivesoftware/smackx/sid/StableUniqueStanzaIdManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/sid/StableUniqueStanzaIdManager.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/sid/StableUniqueStanzaIdManager.java index ec6523dff..99ec03f5d 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/sid/StableUniqueStanzaIdManager.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/sid/StableUniqueStanzaIdManager.java @@ -49,7 +49,8 @@ public final class StableUniqueStanzaIdManager extends Manager { private static final StanzaListener ADD_ORIGIN_ID_INTERCEPTOR = new StanzaListener() { @Override public void processStanza(Stanza stanza) { - OriginIdElement.addOriginId((Message) stanza); + Message message = (Message) stanza; + OriginIdElement.addOriginId(message); } };