diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-11-16 15:57:26 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-11-16 15:57:26 -0800 |
commit | 601aa1cb245db1e21ee5a1bc97108eca2693b337 (patch) | |
tree | 14339648966b817e17e492a5f258f781b83d32e5 | |
parent | eff3084b06b7d8bb9abdc62ffb13f4780c17dea4 (diff) | |
download | scala-601aa1cb245db1e21ee5a1bc97108eca2693b337.tar.gz scala-601aa1cb245db1e21ee5a1bc97108eca2693b337.tar.bz2 scala-601aa1cb245db1e21ee5a1bc97108eca2693b337.zip |
SI-9945 Don't warn imports in java units
Scaladoc was prone to warning about java imports.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala index c73ea54c3d..8f0625e58c 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala @@ -60,7 +60,7 @@ trait Contexts { self: Analyzer => private lazy val allImportInfos = mutable.Map[CompilationUnit, List[ImportInfo]]() withDefaultValue Nil - def warnUnusedImports(unit: CompilationUnit) = { + def warnUnusedImports(unit: CompilationUnit) = if (!unit.isJava) { for (imps <- allImportInfos.remove(unit)) { for (imp <- imps.reverse.distinct) { val used = allUsedSelectors(imp) |