public void doSomething(@NonNull String input) { // code here } public void doSomething(@Nullable String input) { // code here } @CheckForNull public String getValue() { // code here } @CheckForSigned public int calculateValue() { // code here } plugins { id 'java' id 'spotbugs' } dependencies { implementation 'com.github.spotbugs:spotbugs-annotations:4.3.0' // other dependencies } spotbugs { toolVersion = "4.5.0" reportsDir = file("$buildDir/reports/spotbugs") ignoreFailures = false effort = "max" showProgress = true excludeFilter = file("$rootDir/spotbugs-exclude.xml") } gradle spotbugsMain


上一篇:
下一篇:
切换中文