]> source.dussan.org Git - aspectj.git/commitdiff
eclipse: unnecessary cast and messing about
authoraclement <aclement>
Fri, 22 Aug 2008 19:25:30 +0000 (19:25 +0000)
committeraclement <aclement>
Fri, 22 Aug 2008 19:25:30 +0000 (19:25 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java

index 5e747f4452ff37733608f7324d00483a2e3167f4..32e17510cbee560a2b676786acdf91d981e536c0 100644 (file)
@@ -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();