changing the heuristic for log export

Jonathan Bell [2012-08-09 01:13:48]
changing the heuristic for log export
Filename
testcase-generation/src/edu/columbia/cs/psl/invivo/record/CloningUtils.java
testcase-generation/src/edu/columbia/cs/psl/invivo/record/WallaceExportRunner.java
diff --git a/testcase-generation/src/edu/columbia/cs/psl/invivo/record/CloningUtils.java b/testcase-generation/src/edu/columbia/cs/psl/invivo/record/CloningUtils.java
index 7084a8d..6061eef 100644
--- a/testcase-generation/src/edu/columbia/cs/psl/invivo/record/CloningUtils.java
+++ b/testcase-generation/src/edu/columbia/cs/psl/invivo/record/CloningUtils.java
@@ -31,7 +31,6 @@ public class CloningUtils {
 	private static HashSet<Class<?>>	nullInsteads;

 //	private static BufferedWriter		log;
-	public static WallaceExportRunner exporter = new WallaceExportRunner();
 	static {
 		moreIgnoredImmutables = new HashSet<Class<?>>();
 		moreIgnoredImmutables.add(ClassLoader.class);
@@ -56,7 +55,7 @@ public class CloningUtils {
 		nullInsteads.add(Permissions.class);
 		cloner.setExtraNullInsteadOfClone(nullInsteads);
 //		cloner.setDumpClonedClasses(true);
-		exporter.start();
+		WallaceExportRunner.inst.start();
 		if (CATCH_ALL_ERRORS) {
 			Thread.setDefaultUncaughtExceptionHandler(new WallaceUncaughtExceptionHandler());
 		}
diff --git a/testcase-generation/src/edu/columbia/cs/psl/invivo/record/WallaceExportRunner.java b/testcase-generation/src/edu/columbia/cs/psl/invivo/record/WallaceExportRunner.java
index 6ef56e6..48dcc4d 100644
--- a/testcase-generation/src/edu/columbia/cs/psl/invivo/record/WallaceExportRunner.java
+++ b/testcase-generation/src/edu/columbia/cs/psl/invivo/record/WallaceExportRunner.java
@@ -46,9 +46,8 @@ public class WallaceExportRunner extends Thread {
 		}
 				}
 	}
-	private static WallaceExportRunner inst;
+	static WallaceExportRunner inst = new WallaceExportRunner();
 	public WallaceExportRunner() {
-		inst = this;
 		setDaemon(true);
 	}