1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +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 @Override
protected boolean acceptSpecific(IQ iq) { 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 @Override
protected boolean acceptSpecific(Message message) { 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 @Override
protected boolean acceptSpecific(Presence presence) { protected boolean acceptSpecific(Presence presence) {
return presence.getType().equals(type); return presence.getType() == type;
} }
} }