From edc225770f8f3037c87481ab3656e1b6c08ff449 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 3 Oct 2008 23:30:09 +0000 Subject: [PATCH] undo some of the deoptimization --- .../ajdt/internal/core/builder/AjBuildManager.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index 0799a7784..177e95259 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -953,7 +953,6 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour } environment = new StatefulNameEnvironment(getLibraryAccess(classpaths, filenames), state.getClassNameToFileMap(), state); state.setNameEnvironment(environment); - } org.aspectj.ajdt.internal.compiler.CompilerAdapter.setCompilerAdapterFactory(this); @@ -971,15 +970,11 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour // cleanup org.aspectj.ajdt.internal.compiler.CompilerAdapter.setCompilerAdapterFactory(null); AnonymousClassPublisher.aspectOf().setAnonymousClassCreationListener(null); - if (!willReceiveAJDTCallbackForCleanup) { - environment.cleanup(); - environment = null; - } + environment.cleanup(); + // environment = null; } - public static boolean willReceiveAJDTCallbackForCleanup = false; - - public void cleanup() { + public void cleanupEnvironment() { environment.cleanup(); environment = null; } -- 2.39.5