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

Use '==' in (IQ|Message|Presence)TypeFilter

instead of 'equals()'
This commit is contained in:
Florian Schmaus 2014-12-22 16:13:02 +01:00
parent a4e3833468
commit 469548f53a
3 changed files with 3 additions and 3 deletions

View file

@ -42,6 +42,6 @@ public class IQTypeFilter extends FlexiblePacketTypeFilter<IQ> {
@Override
protected boolean acceptSpecific(IQ iq) {
return iq.getType().equals(type);
return iq.getType() == type;
}
}

View file

@ -49,7 +49,7 @@ public class MessageTypeFilter extends FlexiblePacketTypeFilter<Message> {
@Override
protected boolean acceptSpecific(Message message) {
return message.getType().equals(this.type);
return message.getType() == type;
}
}

View file

@ -43,6 +43,6 @@ public class PresenceTypeFilter extends FlexiblePacketTypeFilter<Presence> {
@Override
protected boolean acceptSpecific(Presence presence) {
return presence.getType().equals(type);
return presence.getType() == type;
}
}