mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-08 20:11:08 +01:00
Make sendStanza() final
This commit is contained in:
parent
5705f18f58
commit
dc780ffd6c
2 changed files with 3 additions and 5 deletions
|
|
@ -738,9 +738,8 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: This method should be final.
|
||||
@Override
|
||||
public void sendStanza(Stanza stanza) throws NotConnectedException, InterruptedException {
|
||||
public final void sendStanza(Stanza stanza) throws NotConnectedException, InterruptedException {
|
||||
Objects.requireNonNull(stanza, "Stanza must not be null");
|
||||
assert (stanza instanceof Message || stanza instanceof Presence || stanza instanceof IQ);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue