Fixed minor class cast issue
This commit is contained in:
parent
d44debab67
commit
0594e1f8f8
1 changed files with 4 additions and 4 deletions
|
@ -7,14 +7,14 @@ import de.thedevstack.conversationsplus.xmpp.stanzas.IqPacket;
|
||||||
* Created by tzur on 15.01.2016.
|
* Created by tzur on 15.01.2016.
|
||||||
*/
|
*/
|
||||||
public class PubSubPacketParser {
|
public class PubSubPacketParser {
|
||||||
public static PubSubPacket findPubSubPacket(IqPacket packet){
|
public static Element findPubSubPacket(IqPacket packet){
|
||||||
if (null == packet) {
|
if (null == packet) {
|
||||||
return null;
|
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) {
|
if (null == pubSubPacket) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,6 @@ public class PubSubPacketParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Element findItems(IqPacket packet) {
|
public static Element findItems(IqPacket packet) {
|
||||||
return PubSubPacketParser.findItems(PubSubPacketParser.findPubSubPacket(packet));
|
return PubSubPacketParser.findItemsFromPubSubElement(PubSubPacketParser.findPubSubPacket(packet));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue