From 023329adb42398afe4cb66cd6b521ca80c12243f Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 15 Dec 2012 20:21:52 +0100 Subject: [PATCH] cleanup in Netcache.java --- ChangeLog | 1 + playground/netcache/Netcache.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index afa9e398..a70a7474 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ NEW IN WAF 1.7.7 * XLC and XLF detection fixes #1230 * Fixed the multiple gcc/msvc builds #1237 * Better gdc detection on Ubuntu #1222 +* Enable relative symlinks #1234 NEW IN WAF 1.7.6 ---------------- diff --git a/playground/netcache/Netcache.java b/playground/netcache/Netcache.java index ecc0d6be..a8b5adc1 100644 --- a/playground/netcache/Netcache.java +++ b/playground/netcache/Netcache.java @@ -23,7 +23,7 @@ public class Netcache implements Runnable, Comparator { private static double CLEANRATIO = 0.8; private static int BUF = 16 * 8192; - private static HashMap flist = null; + private final static HashMap flist = new HashMap(); private Socket sock = null; private int port = 0; @@ -222,8 +222,8 @@ public class Netcache implements Runnable, Comparator { } public static void init_flist() { - flist = new HashMap(); synchronized(flist) { + flist.clear(); File dir = new File(CACHEDIR); try { dir.mkdirs();