diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-06 15:29:05 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-06 15:29:05 +0000 |
commit | 88a9af0734108418128510e0b16c01bd75570c90 (patch) | |
tree | 1a848ff33eff1460c004daa8838d0eb7c0387724 /sources/scalac/symtab | |
parent | c06bdb684a0dfcacb1a78ba4518380cdd44c8de9 (diff) | |
download | scala-88a9af0734108418128510e0b16c01bd75570c90.tar.gz scala-88a9af0734108418128510e0b16c01bd75570c90.tar.bz2 scala-88a9af0734108418128510e0b16c01bd75570c90.zip |
- Simplified definitions of Global.isStatic
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index d57d8f8a09..86b3ae8747 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -295,7 +295,7 @@ public abstract class Symbol implements Modifiers, Kinds { /** Is this symbol static (i.e. with no outer instance)? */ public final boolean isStatic() { - return owner.isPackage() || (owner.isJava() && owner.isModuleClass()); + return owner.isStaticOwner(); } /** Does this symbol denote a class that defines static symbols? */ |