summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-10-26 20:04:10 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2016-10-27 10:41:59 +0200
commit762bcdcd7fcdf75d7645b4d8a3d14a2d60ed1fd0 (patch)
treed81edca3c9295de9e34b7d13f027ed811abcc4e8 /src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
parentbde2854588eea4e3199fc97e0af92a8b35ce1705 (diff)
downloadscala-762bcdcd7fcdf75d7645b4d8a3d14a2d60ed1fd0.tar.gz
scala-762bcdcd7fcdf75d7645b4d8a3d14a2d60ed1fd0.tar.bz2
scala-762bcdcd7fcdf75d7645b4d8a3d14a2d60ed1fd0.zip
Clean up cross-check in classfile parser, remove unnecessary assignment
One of the first entries in the classfile is the class name. The classfile parser performs a cross-check by looking up the class sybmol corresponding to that name and ensures it's the same as `clazz`, the class symbol that the parser currently populates. Since 322c980 ("Another massive IDE checkin"), if at the time of the check `clazz` but the lookup returns some class, the `clazz` field is assigned. The commit following this one makes sure `clazz` is never NoSymbol, so the assignment can safely be removed.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala')
0 files changed, 0 insertions, 0 deletions