Parcourir la source

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

nieqiurong il y a 6 ans
Parent
commit
34717f696a
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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 {