changeset 814:95cbe23a96fb

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 09 Sep 2016 10:37:37 -0600
parents f8f7cb485c25
children 07c82fabc46b
files src/luan/modules/ThreadLuan.java src/luan/modules/http/HttpServicer.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r f8f7cb485c25 -r 95cbe23a96fb src/luan/modules/ThreadLuan.java
--- a/src/luan/modules/ThreadLuan.java	Thu Sep 08 22:01:33 2016 -0600
+++ b/src/luan/modules/ThreadLuan.java	Fri Sep 09 10:37:37 2016 -0600
@@ -84,7 +84,7 @@
 
 		public long timeout = 60000L;  // one minute
 		private Map<String,Value> map = new LinkedHashMap<String,Value>() {
-			protected boolean removeEldestEntry(Map.Entry<String,Value> eldest) {
+			@Override protected boolean removeEldestEntry(Map.Entry<String,Value> eldest) {
 				return eldest.getValue().time < System.currentTimeMillis() - timeout;
 			}
 		};
diff -r f8f7cb485c25 -r 95cbe23a96fb src/luan/modules/http/HttpServicer.java
--- a/src/luan/modules/http/HttpServicer.java	Thu Sep 08 22:01:33 2016 -0600
+++ b/src/luan/modules/http/HttpServicer.java	Fri Sep 09 10:37:37 2016 -0600
@@ -44,7 +44,7 @@
 	public static long sessionTimeout = 60*60*1000L;  // one hour
 	private static AtomicInteger sessionCounter = new AtomicInteger();
 	private static Map<String,LuanState> sessionMap = new LinkedHashMap<String,LuanState>() {
-		protected boolean removeEldestEntry(Map.Entry<String,LuanState> eldest) {
+		@Override protected boolean removeEldestEntry(Map.Entry<String,LuanState> eldest) {
 			return (Long)eldest.getValue().registry().get("sessionTimeout") < System.currentTimeMillis();
 		}
 	};