Explorar el Código

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

nieqiurong hace 6 años
padre
commit
34717f696a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      build.gradle

+ 2 - 0
build.gradle

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