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 @@
/**
* GraalVM native image features, not part of Spring Framework public API.
*/
@NullUnmarked
package org.springframework.aot.nativex.feature;
import org.jspecify.annotations.NullUnmarked;
@@ -1,4 +1,7 @@
/**
* GraalVM native image substitutions, not part of Spring Framework public API.
*/
@NullUnmarked
package org.springframework.aot.nativex.substitution;
import org.jspecify.annotations.NullUnmarked;
@@ -10,4 +10,7 @@
* <p>As this repackaging happens at the class file level, sources
* and javadocs are not available here.
*/
@NullUnmarked
package org.springframework.asm;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> beans package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.beans;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> core internal package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.core.internal;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> core package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.core;
import org.jspecify.annotations.NullUnmarked;
@@ -7,4 +7,7 @@
* dependencies on CGLIB at the application level or from third-party
* libraries and frameworks.
*/
@NullUnmarked
package org.springframework.cglib;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> proxy package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.proxy;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> reflect package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.reflect;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> transform impl package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.transform.impl;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> transform package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.transform;
import org.jspecify.annotations.NullUnmarked;
@@ -3,4 +3,7 @@
* <a href="https://github.com/cglib/cglib">CGLIB</a> util package
* (for internal use only).
*/
@NullUnmarked
package org.springframework.cglib.util;
import org.jspecify.annotations.NullUnmarked;
@@ -12,4 +12,7 @@
* <a href="http://objenesis.org/tutorial.html">Objenesis docs</a>
* for details when working with these classes.
*/
@NullUnmarked
package org.springframework.objenesis;
import org.jspecify.annotations.NullUnmarked;