1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 11:38:00 +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:
Florian Schmaus 2024-05-31 23:43:43 +02:00
parent 7acde2acab
commit 4ce926bd63

View file

@ -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());
}