From 0bea5746d02575c4418a472c3de592e228b007a2 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 22 Aug 2008 19:25:30 +0000 Subject: [PATCH] eclipse: unnecessary cast and messing about --- .../org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java index 5e747f445..32e17510c 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java @@ -320,8 +320,7 @@ public class AjCompilerAdapter extends AbstractCompilerAdapter { weaver.weave(new WeaverAdapter(this,weaverMessageHandler,progressListener)); } finally { // ???: is this the right point for this? After weaving has finished clear the caches. - if (weaverMessageHandler instanceof WeaverMessageHandler) - ((WeaverMessageHandler)weaverMessageHandler).setCurrentResult(null); + weaverMessageHandler.setCurrentResult(null); weaver.allWeavingComplete(); weaver.tidyUp(); IMessageHandler imh = weaver.getWorld().getMessageHandler(); -- 2.39.5