Explorar o código

编译输出过时方法,保留参数名字.

nieqiurong %!s(int64=6) %!d(string=hai) anos
pai
achega
34717f696a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      build.gradle

+ 2 - 0
build.gradle

@@ -83,6 +83,8 @@ subprojects {
 
     tasks.withType(JavaCompile) {
         options.encoding = 'UTF-8'
+        options.deprecation = true
+        options.compilerArgs += ["-parameters"]
     }
 
     jar {