diff --git a/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java b/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java index c26f80edc4..d73e0c60c1 100644 --- a/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java +++ b/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java @@ -34,27 +34,26 @@ import org.springframework.util.Assert; * Base implementation of {@link org.springframework.security.core.session.SessionRegistry} * which also listens for {@link org.springframework.security.web.session.HttpSessionDestroyedEvent}s * published in the Spring application context. - * *

- * NB: It is important that you register the {@link org.springframework.security.web.session.HttpSessionEventPublisher} in - * web.xml so that this class is notified of sessions that expire. + * NB: It is important that you register the {@link org.springframework.security.web.session.HttpSessionEventPublisher} + * in web.xml so that this class is notified of sessions that expire. * * @author Ben Alex + * @author Luke Taylor * @version $Id$ */ public class SessionRegistryImpl implements SessionRegistry, ApplicationListener { - //~ Static fields/initializers ===================================================================================== - protected static final Log logger = LogFactory.getLog(SessionRegistryImpl.class); + //~ Instance fields ================================================================================================ - // ~ Instance fields =============================================================================================== + protected final Log logger = LogFactory.getLog(SessionRegistryImpl.class); /** */ - private Map> principals = Collections.synchronizedMap(new HashMap>()); + private final Map> principals = Collections.synchronizedMap(new HashMap>()); /** */ - private Map sessionIds = Collections.synchronizedMap(new HashMap()); + private final Map sessionIds = Collections.synchronizedMap(new HashMap()); - // ~ Methods ======================================================================================================= + //~ Methods ======================================================================================================== public List getAllPrincipals() { return Arrays.asList(principals.keySet().toArray());