1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

Make Roster.hasValidSubscriptionType() static

This commit is contained in:
Florian Schmaus 2014-05-17 09:45:20 +02:00
parent c80a4044e6
commit 9a61c75ab0

View file

@ -782,15 +782,13 @@ public class Roster {
* *
* This is used by {@link RosterPushListener} and {@link RosterResultListener}. * This is used by {@link RosterPushListener} and {@link RosterResultListener}.
* */ * */
private boolean hasValidSubscriptionType(RosterPacket.Item item) { private static boolean hasValidSubscriptionType(RosterPacket.Item item) {
return item.getItemType().equals(RosterPacket.ItemType.none) return item.getItemType().equals(RosterPacket.ItemType.none)
|| item.getItemType().equals(RosterPacket.ItemType.from) || item.getItemType().equals(RosterPacket.ItemType.from)
|| item.getItemType().equals(RosterPacket.ItemType.to) || item.getItemType().equals(RosterPacket.ItemType.to)
|| item.getItemType().equals(RosterPacket.ItemType.both); || item.getItemType().equals(RosterPacket.ItemType.both);
} }
/** /**
* An enumeration for the subscription mode options. * An enumeration for the subscription mode options.
*/ */