Upgrade to nullability plugin 0.0.9

This commit also replaces Arch Unit packageInfoShouldBeNullMarked() rule
by either configuring requireExplicitNullMarking = false when the whole
module does not have JSpecify annotations, or explicit @NullUnmarked
when some have and some don't.

See gh-36054
This commit is contained in:
Sébastien Deleuze
2025-12-29 17:08:34 +01:00
parent d36244ee56
commit 46fb7c026c
23 changed files with 61 additions and 15 deletions
@@ -1,4 +1,7 @@
/**
* Support for class instrumentation on GlassFish.
*/
@NullUnmarked
package org.springframework.instrument.classloading.glassfish;
import org.jspecify.annotations.NullUnmarked;
@@ -1,4 +1,7 @@
/**
* Support for class instrumentation on JBoss AS 6 and 7.
*/
@NullUnmarked
package org.springframework.instrument.classloading.jboss;
import org.jspecify.annotations.NullUnmarked;
@@ -2,4 +2,7 @@
* Support package for load time weaving based on class loaders,
* as required by JPA providers (but not JPA-specific).
*/
@NullUnmarked
package org.springframework.instrument.classloading;
import org.jspecify.annotations.NullUnmarked;
@@ -1,4 +1,7 @@
/**
* Support for class instrumentation on Tomcat.
*/
@NullUnmarked
package org.springframework.instrument.classloading.tomcat;
import org.jspecify.annotations.NullUnmarked;