Make Roster.hasValidSubscriptionType() static

This commit is contained in:
Florian Schmaus 2014-05-17 09:45:20 +02:00
parent c80a4044e6
commit 9a61c75ab0
1 changed files with 1 additions and 3 deletions

View File

@ -782,15 +782,13 @@ public class Roster {
*
* 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)
|| item.getItemType().equals(RosterPacket.ItemType.from)
|| item.getItemType().equals(RosterPacket.ItemType.to)
|| item.getItemType().equals(RosterPacket.ItemType.both);
}
/**
* An enumeration for the subscription mode options.
*/