Description
This patch is little improvement in method exists of SessionApplicationStatePersistenceStrategy.
public <T> boolean exists(Class<T> ssoClass) { String key = buildKey(ssoClass); Session session = request.getSession(false); return session != null && session.getAttribute(key) != null; }
We changed the code so that the key is built only when the session is not null.
This code didn't have effect on time per request, but I think it's useful.
Thank mihasik for the idea.