提交 fad0012c authored 作者: Thomas Mueller's avatar Thomas Mueller

Mark deprecated methods

上级 68bae56e
......@@ -198,9 +198,11 @@ public class Build extends BuildBase {
args = args.plus("-source", "1.5", "-target", "jsr14", "-bootclasspath", bcp);
}
if (debugInfo) {
args = args.plus("-Xlint:unchecked", "-d", "temp", "-sourcepath", "src/main", "-classpath", classpath);
args = args.plus("-Xlint:unchecked",
"-d", "temp", "-sourcepath", "src/main", "-classpath", classpath);
} else {
args = args.plus("-Xlint:unchecked", "-g:none", "-d", "temp", "-sourcepath", "src/main", "-classpath", classpath);
args = args.plus("-Xlint:unchecked", "-g:none",
"-d", "temp", "-sourcepath", "src/main", "-classpath", classpath);
}
javac(args, files);
......@@ -210,7 +212,8 @@ public class Build extends BuildBase {
if (!clientOnly) {
files = files("src/test");
files.addAll(files("src/tools"));
args = args("-Xlint:unchecked", "-d", "temp", "-sourcepath", "src/test" + File.pathSeparator + "src/tools",
args = args("-Xlint:unchecked", "-Xlint:deprecation",
"-d", "temp", "-sourcepath", "src/test" + File.pathSeparator + "src/tools",
"-classpath", classpath);
javac(args, files);
files = files("src/test").
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论