1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Make Stanza constructors 'protected'

This commit is contained in:
Florian Schmaus 2015-02-23 10:48:43 +01:00
parent 180a3bb4ca
commit b74b8c5757

View file

@ -73,15 +73,15 @@ public abstract class Stanza implements TopLevelStreamElement, Packet {
*/ */
protected String language; protected String language;
public Stanza() { protected Stanza() {
this(StanzaIdUtil.newStanzaId()); this(StanzaIdUtil.newStanzaId());
} }
public Stanza(String stanzaId) { protected Stanza(String stanzaId) {
setStanzaId(stanzaId); setStanzaId(stanzaId);
} }
public Stanza(Stanza p) { protected Stanza(Stanza p) {
id = p.getStanzaId(); id = p.getStanzaId();
to = p.getTo(); to = p.getTo();
from = p.getFrom(); from = p.getFrom();