Skip to content

Commit e377746

Browse files
committed
Use new DSL for suppression name aliases
1 parent 83d976c commit e377746

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.java-nullability-conventions.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ tasks.withType<JavaCompile>().configureEach {
6767
isJSpecifyMode = true
6868
customContractAnnotations.add("org.junit.platform.commons.annotation.Contract")
6969
checkContracts = true
70-
// FIXME a new gradle-nullaway-plugin version is needed for a proper DSL
71-
checkOptions.put("NullAway:SuppressionNameAliases", "DataFlowIssue")
70+
suppressionNameAliases.add("DataFlowIssue")
7271
}
7372
}
7473
}

0 commit comments

Comments
 (0)