📜  使用 -Xlint:deprecation 重新编译 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:30.002000             🧑  作者: Mango

代码示例1
//add to android project level build.gradle
allprojects {
    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
        }
    }
}