5

我的 SBT 版本正在回响:

[error] Note: Some input files use unchecked or unsafe operations.
[error] Note: Recompile with -Xlint:unchecked for details.

如何将-Xlint:unchecked参数传递给 SBT 调用的 javac 进程?

4

1 回答 1

6

请参阅http://code.google.com/p/simple-build-tool/wiki/BuildConfiguration#Compile_Options

override def compileOptions = super.compileOptions ++ 
  compileOptions("-Xlint:unchecked")
于 2011-05-20T05:21:46.463 回答