made presences object final in contact

This commit is contained in:
Daniel Gultsch 2016-02-23 14:25:01 +01:00
parent 7f45e210af
commit beb216c300

View File

@ -45,7 +45,7 @@ public class Contact implements ListItem, Blockable {
protected String photoUri;
protected JSONObject keys = new JSONObject();
protected JSONArray groups = new JSONArray();
protected Presences presences = new Presences();
protected final Presences presences = new Presences();
protected Account account;
protected Avatar avatar;
@ -222,10 +222,6 @@ public class Contact implements ListItem, Blockable {
return this.presences;
}
public void setPresences(Presences pres) {
this.presences = pres;
}
public void updatePresence(final String resource, final Presence presence) {
this.presences.updatePresence(resource, presence);
}