From: Fredrik Tolf Date: Wed, 9 Dec 2009 05:03:27 +0000 (+0100) Subject: Use an IdentityHashMap for session properties. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=3d90f73a3acf624a5c58e949f75d763f9877c0e2;p=jsvc.git Use an IdentityHashMap for session properties. Why I did not do this before, I have no idea. --- 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();