From: aclement Date: Fri, 22 Aug 2008 19:25:01 +0000 (+0000) Subject: findbugs: unused code X-Git-Tag: V162DEV_M1~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=73a784c6a64e8526afaed047386ed23a1cfd52dc;p=aspectj.git findbugs: unused code --- diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java index b63f74108..c3b250564 100644 --- a/asm/src/org/aspectj/asm/internal/ProgramElement.java +++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java @@ -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();