fix checkstyle

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-08-27 18:43:33 +10:00
parent 83463c2a23
commit 2564a08150
1 changed files with 3 additions and 9 deletions

View File

@ -25,7 +25,6 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
/**
* NullSessionCache
*
@ -75,8 +74,7 @@ public class NullSessionCache extends AbstractSessionCache
if (store == null)
return;
if (_writeThroughMode == WriteThroughMode.ALWAYS
|| (_writeThroughMode == WriteThroughMode.NEW && session.isNew()))
if (_writeThroughMode == WriteThroughMode.ALWAYS || (_writeThroughMode == WriteThroughMode.NEW && session.isNew()))
{
//ensure that a call to willPassivate doesn't result in a passivation
//listener removing an attribute, which would cause this listener to
@ -128,12 +126,11 @@ public class NullSessionCache extends AbstractSessionCache
* (which is the default behaviour of AbstractSessionCache)
*/
ON_EXIT
};
}
private WriteThroughMode _writeThroughMode = WriteThroughMode.ON_EXIT;
protected WriteThroughAttributeListener _listener = null;
/**
* @return the writeThroughMode
*/
@ -142,7 +139,6 @@ public class NullSessionCache extends AbstractSessionCache
return _writeThroughMode;
}
/**
* @param writeThroughMode the writeThroughMode to set
*/
@ -184,7 +180,6 @@ public class NullSessionCache extends AbstractSessionCache
_writeThroughMode = writeThroughMode;
}
/**
* @param handler The SessionHandler related to this SessionCache
*/
@ -194,7 +189,6 @@ public class NullSessionCache extends AbstractSessionCache
super.setEvictionPolicy(EVICT_ON_SESSION_EXIT);
}
/**
* @see org.eclipse.jetty.server.session.SessionCache#shutdown()
*/