答案 0 :(得分:0)
从命令行找到解决方案:
sbt
set scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
compile
找到了警告的原因:
[warn] Blah.scala:53: Adaptation of argument list by inserting () has been deprecated: leaky (Object-receiving) target makes this especially dangerous.
[warn] signature: Logger.error(x$1: Any): Unit
[warn] given arguments: <none>
[warn] after adaptation: Logger.error((): Unit)
[warn] logger.error()
[warn] ^
[warn] one warning found
问题是我使用了一个不推荐使用的函数调用logger.error()
。虽然IntelliJ没有给出任何lint错误,这很奇怪。