提交 514580f4 authored 作者: Thomas Mueller's avatar Thomas Mueller

Compiler: keep the package name.

上级 9e922260
......@@ -153,13 +153,13 @@ public class SourceCompiler {
String importCode = "import java.util.*;\n" +
"import java.math.*;\n" +
"import java.sql.*;\n";
if (packageName != null) {
importCode = "package " + packageName + ";\n" + importCode;
}
if (endImport >= 0) {
importCode = source.substring(0, endImport);
source = source.substring("@CODE".length() + endImport);
}
if (packageName != null) {
out.println("package " + packageName + ";");
}
out.println(importCode);
out.println("public class "+ className +" {\n" +
" public static " +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论