diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-01-16 19:18:29 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-01-16 19:18:29 +0100 |
commit | 0594e1f8f8cf9e8589e2a86e116bef14100ed6ac (patch) | |
tree | 8ca2413971c37c814fcf5e965534934e980b8c8c /src/main/java/de/thedevstack/conversationsplus/xmpp | |
parent | d44debab6726edbac07901a2b94a07f2ef4771ee (diff) |
Fixed minor class cast issue
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/xmpp')
-rw-r--r-- | src/main/java/de/thedevstack/conversationsplus/xmpp/pubsub/PubSubPacketParser.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/xmpp/pubsub/PubSubPacketParser.java b/src/main/java/de/thedevstack/conversationsplus/xmpp/pubsub/PubSubPacketParser.java index a5172577..682803c4 100644 --- a/src/main/java/de/thedevstack/conversationsplus/xmpp/pubsub/PubSubPacketParser.java +++ b/src/main/java/de/thedevstack/conversationsplus/xmpp/pubsub/PubSubPacketParser.java @@ -7,14 +7,14 @@ import de.thedevstack.conversationsplus.xmpp.stanzas.IqPacket; * Created by tzur on 15.01.2016. */ public class PubSubPacketParser { - public static PubSubPacket findPubSubPacket(IqPacket packet){ + public static Element findPubSubPacket(IqPacket packet){ if (null == packet) { return null; } - return (PubSubPacket) packet.findChild("pubsub", "http://jabber.org/protocol/pubsub"); + return packet.findChild("pubsub", "http://jabber.org/protocol/pubsub"); } - public static Element findItems(PubSubPacket pubSubPacket) { + public static Element findItemsFromPubSubElement(Element pubSubPacket) { if (null == pubSubPacket) { return null; } @@ -22,6 +22,6 @@ public class PubSubPacketParser { } public static Element findItems(IqPacket packet) { - return PubSubPacketParser.findItems(PubSubPacketParser.findPubSubPacket(packet)); + return PubSubPacketParser.findItemsFromPubSubElement(PubSubPacketParser.findPubSubPacket(packet)); } } |