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