]> source.dussan.org Git - aspectj.git/commitdiff
remove unnecessary cast
authoraclement <aclement>
Wed, 21 Jan 2009 00:06:40 +0000 (00:06 +0000)
committeraclement <aclement>
Wed, 21 Jan 2009 00:06:40 +0000 (00:06 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java

index 1ed1ca608acd6f5dc09fbb873691d197d6ac3bb9..5e8116859f0e0ed29d2fddadd0a83af4e74cc339 100644 (file)
@@ -612,9 +612,7 @@ public class BcelWorld extends World implements Repository {
                        return; // We haven't heard of it yet
                if (!result.isExposedToWeaver())
                        return; // cant need resetting
-               ReferenceType rt = (ReferenceType) result;
-               rt.ensureConsistent();
-               // rt.getDelegate().ensureDelegateConsistent();
+               result.ensureConsistent();
                // If we want to rebuild it 'from scratch' then:
                // ClassParser cp = new ClassParser(new
                // ByteArrayInputStream(newbytes),new String(cs));