aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-10-27 17:16:18 +0100
committerDaniel Gultsch <daniel@gultsch.de>2015-10-27 17:16:18 +0100
commitd65273ce39ab112ba95d0b852cda6717dbf33c8c (patch)
tree1a76a2df6cacc82d9d31b7664272011b19610fcd /src/main
parentec473a4437b3bff88e80404b7012ae15d3c09c3d (diff)
parente747ecef4d6b9573be84229692ddc0cb9b2fe8e2 (diff)
Merge pull request #1523 from SamWhited/presence_sync_fix
Don't synchronize on non-final field
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Presences.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Presences.java b/src/main/java/eu/siacs/conversations/entities/Presences.java
index bccf3117..4729a11b 100644
--- a/src/main/java/eu/siacs/conversations/entities/Presences.java
+++ b/src/main/java/eu/siacs/conversations/entities/Presences.java
@@ -15,7 +15,7 @@ public class Presences {
public static final int DND = 3;
public static final int OFFLINE = 4;
- private Hashtable<String, Integer> presences = new Hashtable<String, Integer>();
+ private final Hashtable<String, Integer> presences = new Hashtable<>();
public Hashtable<String, Integer> getPresences() {
return this.presences;