From 8da5cd2cf0b9bcf91c119b5a5f741bea3d53d5ab Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 17 Jul 2007 15:24:37 +0000 Subject: returns NoSymbol instead of null --- src/compiler/scala/tools/nsc/symtab/Definitions.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/symtab/Definitions.scala b/src/compiler/scala/tools/nsc/symtab/Definitions.scala index c0ae8720cf..ee45d17d7f 100644 --- a/src/compiler/scala/tools/nsc/symtab/Definitions.scala +++ b/src/compiler/scala/tools/nsc/symtab/Definitions.scala @@ -392,7 +392,7 @@ trait Definitions { def getClass(fullname: Name): Symbol = getModuleOrClass(fullname, false) def getMember(owner: Symbol, name: Name): Symbol = { - if (owner == null) return null + if (owner == NoSymbol) return NoSymbol val result = owner.info.nonPrivateMember(name) if (result == NoSymbol) { Console.println(owner.infosString) @@ -403,7 +403,7 @@ trait Definitions { } private def getModuleOrClass(fullname: Name, module: Boolean): Symbol = { - if (fullname == nme.NOSYMBOL) return null + if (fullname == nme.NOSYMBOL) return NoSymbol var sym = RootClass var i = 0 var j = fullname.pos('.', i) -- cgit v1.2.3