Dolda2000 GitWeb
/
jsvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
816cbb0
)
Use an IdentityHashMap for session properties.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 9 Dec 2009 05:03:27 +0000
(06:03 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 9 Dec 2009 05:03:27 +0000
(06:03 +0100)
Why I did not do this before, I have no idea.
src/dolda/jsvc/util/Session.java
patch
|
blob
|
blame
|
history
diff --git
a/src/dolda/jsvc/util/Session.java
b/src/dolda/jsvc/util/Session.java
index
679a72f
..
eb17fcf
100644
(file)
--- 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<Object, Object> props = new HashMap<Object, Object>();
+ private final Map<Object, Object> props = new
Identity
HashMap<Object, Object>();
private long ctime = System.currentTimeMillis(), atime = ctime, etime = 86400 * 1000;
private Collection<Listener> ll = new HashSet<Listener>();