]> source.dussan.org Git - aspectj.git/commitdiff
findbugs: unused code
authoraclement <aclement>
Fri, 22 Aug 2008 19:25:01 +0000 (19:25 +0000)
committeraclement <aclement>
Fri, 22 Aug 2008 19:25:01 +0000 (19:25 +0000)
asm/src/org/aspectj/asm/internal/ProgramElement.java

index b63f74108407daf93439ded36efca75dc1f6f826..c3b25056443f0d491bbce24b47e49cf8e4e31d03 100644 (file)
@@ -134,7 +134,7 @@ public class ProgramElement implements IProgramElement {
 
        public String getPackageName() {
                if (kind == Kind.PACKAGE) return getName();
-               if (getParent() == null || !(getParent() instanceof IProgramElement)) {
+               if (getParent() == null) {
                        return "";
                }
                return ((IProgramElement)getParent()).getPackageName();