aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/xmpp/pubsub/PubSubPacketParser.java8
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));
}
}