mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
[core] Use StanzaView as StanzaIdFilter constructor parameter type
Instead of Stanza, use StanzaView as constructor parameter type of StanzaIdFilter. Even though StanzaView also includes builders, the Stanza ID is even immutable in builders.
This commit is contained in:
parent
7acde2acab
commit
4ce926bd63
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
package org.jivesoftware.smack.filter;
|
||||
|
||||
import org.jivesoftware.smack.packet.Stanza;
|
||||
import org.jivesoftware.smack.packet.StanzaView;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
|
||||
/**
|
||||
|
@ -34,7 +35,7 @@ public class StanzaIdFilter implements StanzaFilter {
|
|||
*
|
||||
* @param stanza the stanza which the ID is taken from.
|
||||
*/
|
||||
public StanzaIdFilter(Stanza stanza) {
|
||||
public StanzaIdFilter(StanzaView stanza) {
|
||||
this(stanza.getStanzaId());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue