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:
parent
a4e3833468
commit
469548f53a
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue