From 3d90f73a3acf624a5c58e949f75d763f9877c0e2 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 9 Dec 2009 06:03:27 +0100 Subject: [PATCH] Use an IdentityHashMap for session properties. Why I did not do this before, I have no idea. --- src/dolda/jsvc/util/Session.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolda/jsvc/util/Session.java b/src/dolda/jsvc/util/Session.java index 679a72f..eb17fcf 100644 --- a/src/dolda/jsvc/util/Session.java +++ b/src/dolda/jsvc/util/Session.java @@ -10,7 +10,7 @@ public class Session implements java.io.Serializable { private static final SecureRandom prng; private static long lastclean = 0; private final String id; - private final Map props = new HashMap(); + private final Map props = new IdentityHashMap(); private long ctime = System.currentTimeMillis(), atime = ctime, etime = 86400 * 1000; private Collection ll = new HashSet(); -- 2.11.0