📜  -Xlint:deprecation - Java 代码示例

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

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