diff options
author | Sam Whited <sam@samwhited.com> | 2015-10-26 20:13:48 -0500 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2015-10-26 20:13:48 -0500 |
commit | e747ecef4d6b9573be84229692ddc0cb9b2fe8e2 (patch) | |
tree | 1a76a2df6cacc82d9d31b7664272011b19610fcd /src | |
parent | ec473a4437b3bff88e80404b7012ae15d3c09c3d (diff) |
Don't synchronize on non-final field
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Presences.java | 2 |
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; |