mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Make Stanza constructors 'protected'
This commit is contained in:
parent
180a3bb4ca
commit
b74b8c5757
1 changed files with 3 additions and 3 deletions
|
@ -73,15 +73,15 @@ public abstract class Stanza implements TopLevelStreamElement, Packet {
|
|||
*/
|
||||
protected String language;
|
||||
|
||||
public Stanza() {
|
||||
protected Stanza() {
|
||||
this(StanzaIdUtil.newStanzaId());
|
||||
}
|
||||
|
||||
public Stanza(String stanzaId) {
|
||||
protected Stanza(String stanzaId) {
|
||||
setStanzaId(stanzaId);
|
||||
}
|
||||
|
||||
public Stanza(Stanza p) {
|
||||
protected Stanza(Stanza p) {
|
||||
id = p.getStanzaId();
|
||||
to = p.getTo();
|
||||
from = p.getFrom();
|
||||
|
|
Loading…
Reference in a new issue