Przeglądaj źródła

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

nieqiurong 6 lat temu
rodzic
commit
34717f696a
1 zmienionych plików z 2 dodań i 0 usunięć
  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 {