From 634dcb99833a08b9c15bbbd5c1b0f11e88885231 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 Oct 2025 10:02:33 +0000 Subject: [PATCH 1/2] Bump io.spring.nullability in the development-dependencies group Bumps the development-dependencies group with 1 update: [io.spring.nullability](https://github.com/spring-gradle-plugins/nullability-plugin). Updates `io.spring.nullability` from 0.0.5 to 0.0.6 - [Release notes](https://github.com/spring-gradle-plugins/nullability-plugin/releases) - [Commits](https://github.com/spring-gradle-plugins/nullability-plugin/compare/v0.0.5...v0.0.6) --- updated-dependencies: - dependency-name: io.spring.nullability dependency-version: 0.0.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies ... Signed-off-by: dependabot[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 06e9b24f40..b83573f9c7 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ plugins { id 'io.spring.nohttp' version '0.0.11' id 'io.spring.dependency-management' version '1.1.7' apply false id 'io.freefair.aggregate-javadoc' version '8.11' - id 'io.spring.nullability' version '0.0.5' apply false + id 'io.spring.nullability' version '0.0.6' apply false } apply plugin: 'io.spring.nohttp' From 947e5869d4b7d61461d3b2c7cbd8fd553e9a7a3f Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Mon, 20 Oct 2025 12:23:22 -0400 Subject: [PATCH 2/2] Fix NullAway errors for array element type annotations Change array field and getter annotations from @Nullable element types to non-nullable element types to match constructor expectations. Arrays can still be null (reference nullable), but elements within those arrays must be non-null, consistent with varargs constructors that don't accept nullable elements. Signed-off-by: Soby Chacko --- .../kafka/listener/AbstractMessageListenerContainer.java | 4 ++-- .../AbstractShareKafkaMessageListenerContainer.java | 4 ++-- .../springframework/kafka/listener/ConsumerProperties.java | 6 ++---- .../retrytopic/ListenerContainerFactoryConfigurer.java | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java index 66bf4bc67b..67549bd5c0 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java @@ -157,7 +157,7 @@ protected AbstractMessageListenerContainer(@Nullable ConsumerFactory) consumerFactory; - @Nullable String @Nullable [] topics = containerProperties.getTopics(); + String @Nullable [] topics = containerProperties.getTopics(); if (topics != null) { this.containerProperties = new ContainerProperties(topics); } @@ -167,7 +167,7 @@ protected AbstractMessageListenerContainer(@Nullable ConsumerFactory) shareConsumerFactory; - @Nullable String @Nullable [] topics = containerProperties.getTopics(); + String @Nullable [] topics = containerProperties.getTopics(); if (topics != null) { this.containerProperties = new ContainerProperties(topics); } @@ -104,7 +104,7 @@ protected AbstractShareKafkaMessageListenerContainer(ShareConsumerFactory @Nullable [] blockingExceptionTypes; + private Class @Nullable [] blockingExceptionTypes; private boolean retainStandardFatal;