diff options
author | aclement <aclement> | 2008-08-22 19:25:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-22 19:25:01 +0000 |
commit | 73a784c6a64e8526afaed047386ed23a1cfd52dc (patch) | |
tree | a5177cf32e37db9160d5eb6545a8c18148fb8019 /asm | |
parent | e5d9df60b019fad6cb9d03e8f24935189aff017b (diff) | |
download | aspectj-73a784c6a64e8526afaed047386ed23a1cfd52dc.tar.gz aspectj-73a784c6a64e8526afaed047386ed23a1cfd52dc.zip |
findbugs: unused code
Diffstat (limited to 'asm')
-rw-r--r-- | asm/src/org/aspectj/asm/internal/ProgramElement.java | 2 |
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(); |