1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 00: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;
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();