summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--asm/src/org/aspectj/asm/internal/ProgramElement.java2
1 files changed, 1 insertions, 1 deletions
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();