From 73a784c6a64e8526afaed047386ed23a1cfd52dc Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 22 Aug 2008 19:25:01 +0000 Subject: [PATCH] findbugs: unused code --- asm/src/org/aspectj/asm/internal/ProgramElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5