Skip to content

Commit cd9519b

Browse files
committed
Enable NullAway in junit-platform-suite-api
1 parent fb92dd2 commit cd9519b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

junit-platform-suite-api/junit-platform-suite-api.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id("junitbuild.java-library-conventions")
3+
id("junitbuild.java-nullability-conventions")
34
}
45

56
description = "JUnit Platform Suite API"
@@ -9,6 +10,7 @@ dependencies {
910
api(projects.junitPlatformCommons)
1011

1112
compileOnlyApi(libs.apiguardian)
13+
compileOnly(libs.jspecify)
1214

1315
osgiVerification(projects.junitJupiterEngine)
1416
osgiVerification(projects.junitPlatformLauncher)

junit-platform-suite-api/src/main/java/module-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
* https://www.eclipse.org/legal/epl-v20.html
99
*/
1010

11+
import org.jspecify.annotations.NullMarked;
12+
1113
/**
1214
* Annotations for configuring a test suite on the JUnit Platform.
1315
*
1416
* @since 1.0
1517
*/
18+
@NullMarked
1619
module org.junit.platform.suite.api {
1720
requires static transitive org.apiguardian.api;
1821
requires transitive org.junit.platform.commons;

0 commit comments

Comments
 (0)