From df1f2259cb7a4b8e4e0549a69da679addd512ebc Mon Sep 17 00:00:00 2001 From: paltherr Date: Wed, 29 Oct 2003 21:01:41 +0000 Subject: - Removed reference to Definitions.JAVALANG --- sources/scala/tools/scaladoc/HTMLGenerator.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/scala/tools/scaladoc/HTMLGenerator.java b/sources/scala/tools/scaladoc/HTMLGenerator.java index 1f63e0c6c3..fc718f0e40 100644 --- a/sources/scala/tools/scaladoc/HTMLGenerator.java +++ b/sources/scala/tools/scaladoc/HTMLGenerator.java @@ -47,6 +47,7 @@ import scalac.symtab.Type; import scalac.symtab.Type.*; import scalac.util.Debug; import scalac.util.Name; +import scalac.util.Names; import scalac.util.Strings; /** @@ -222,6 +223,8 @@ public class HTMLGenerator { protected final Symbol indexPage = new NoSymbol(); protected final Symbol helpPage = new NoSymbol(); + private final Symbol JAVALANG; // !!! remove ? + /** * Creates a new instance. * @@ -234,6 +237,7 @@ public class HTMLGenerator { this.subs = ScalaSearch.subTemplates(tree); this.anchors = Anchors.apply(tree); + this.JAVALANG = global.definitions.getClass(Names.java_lang); assert global.args instanceof HTMLGeneratorCommand; HTMLGeneratorCommand args = (HTMLGeneratorCommand) global.args; this.representation = new HTMLRepresentation( @@ -1025,7 +1029,7 @@ public class HTMLGenerator { if (prefix.symbol().isRoot()) return null; // Next line should be removed in theory. - if (prefix.symbol().moduleClass() == global.definitions.JAVALANG_CLASS) + if (prefix.symbol().moduleClass() == JAVALANG) return null; switch(prefix) { -- cgit v1.2.3