Skip to content

Commit d40afe6

Browse files
authored
GH-10083: fix Nullability deprecations core
* gh-10083: Scope: spring-integration-core Replaced deprecated springframework Nullable with jspecify Nullable Signed-off-by: Anayonkar Shivalkar <[email protected]>
1 parent 2c3c0d3 commit d40afe6

File tree

176 files changed

+448
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+448
-340
lines changed

spring-integration-core/src/main/java/org/springframework/integration/IntegrationMessageHeaderAccessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2024 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,10 +25,10 @@
2525
import java.util.concurrent.atomic.AtomicInteger;
2626
import java.util.function.BiFunction;
2727

28+
import org.jspecify.annotations.Nullable;
2829
import reactor.util.context.ContextView;
2930

3031
import org.springframework.integration.acks.AcknowledgmentCallback;
31-
import org.springframework.lang.Nullable;
3232
import org.springframework.messaging.Message;
3333
import org.springframework.messaging.support.MessageHeaderAccessor;
3434
import org.springframework.util.Assert;

spring-integration-core/src/main/java/org/springframework/integration/JavaUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2023 the original author or authors.
2+
* Copyright 2019-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,8 @@
2020
import java.util.function.BiConsumer;
2121
import java.util.function.Consumer;
2222

23-
import org.springframework.lang.Nullable;
23+
import org.jspecify.annotations.Nullable;
24+
2425
import org.springframework.util.CollectionUtils;
2526
import org.springframework.util.ObjectUtils;
2627
import org.springframework.util.StringUtils;

spring-integration-core/src/main/java/org/springframework/integration/StaticMessageHeaderAccessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2023 the original author or authors.
2+
* Copyright 2017-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,12 +20,12 @@
2020
import java.util.UUID;
2121
import java.util.concurrent.atomic.AtomicInteger;
2222

23+
import org.jspecify.annotations.Nullable;
2324
import reactor.util.context.Context;
2425
import reactor.util.context.ContextView;
2526

2627
import org.springframework.integration.acks.AcknowledgmentCallback;
2728
import org.springframework.integration.acks.SimpleAcknowledgment;
28-
import org.springframework.lang.Nullable;
2929
import org.springframework.messaging.Message;
3030
import org.springframework.messaging.MessageHeaders;
3131
import org.springframework.util.MimeType;

spring-integration-core/src/main/java/org/springframework/integration/acks/AckUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2019 the original author or authors.
2+
* Copyright 2018-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,8 +16,9 @@
1616

1717
package org.springframework.integration.acks;
1818

19+
import org.jspecify.annotations.Nullable;
20+
1921
import org.springframework.integration.acks.AcknowledgmentCallback.Status;
20-
import org.springframework.lang.Nullable;
2122

2223
/**
2324
* Utility methods for acting on {@link AcknowledgmentCallback} headers.

spring-integration-core/src/main/java/org/springframework/integration/aggregator/AbstractCorrelatingMessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.util.function.BiFunction;
3333

3434
import org.aopalliance.aop.Advice;
35+
import org.jspecify.annotations.Nullable;
3536

3637
import org.springframework.aop.framework.ProxyFactory;
3738
import org.springframework.beans.factory.BeanFactory;
@@ -58,7 +59,6 @@
5859
import org.springframework.integration.support.locks.LockRegistry;
5960
import org.springframework.integration.support.management.ManageableLifecycle;
6061
import org.springframework.integration.util.UUIDConverter;
61-
import org.springframework.lang.Nullable;
6262
import org.springframework.messaging.Message;
6363
import org.springframework.messaging.MessageChannel;
6464
import org.springframework.messaging.MessageDeliveryException;

spring-integration-core/src/main/java/org/springframework/integration/aggregator/BarrierMessageHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2024 the original author or authors.
2+
* Copyright 2015-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,13 +21,14 @@
2121
import java.util.concurrent.SynchronousQueue;
2222
import java.util.concurrent.TimeUnit;
2323

24+
import org.jspecify.annotations.Nullable;
25+
2426
import org.springframework.integration.IntegrationMessageHeaderAccessor;
2527
import org.springframework.integration.IntegrationPatternType;
2628
import org.springframework.integration.handler.AbstractReplyProducingMessageHandler;
2729
import org.springframework.integration.handler.DiscardingMessageHandler;
2830
import org.springframework.integration.handler.MessageTriggerAction;
2931
import org.springframework.integration.store.SimpleMessageGroup;
30-
import org.springframework.lang.Nullable;
3132
import org.springframework.messaging.Message;
3233
import org.springframework.messaging.MessageChannel;
3334
import org.springframework.messaging.MessageHandlingException;

spring-integration-core/src/main/java/org/springframework/integration/aggregator/MethodInvokingMessageListProcessor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,11 +21,12 @@
2121
import java.util.Collection;
2222
import java.util.Map;
2323

24+
import org.jspecify.annotations.NonNull;
25+
2426
import org.springframework.beans.factory.BeanFactory;
2527
import org.springframework.integration.handler.support.MessagingMethodInvokerHelper;
2628
import org.springframework.integration.support.management.ManageableLifecycle;
2729
import org.springframework.integration.util.AbstractExpressionEvaluator;
28-
import org.springframework.lang.NonNull;
2930
import org.springframework.messaging.Message;
3031

3132
/**

spring-integration-core/src/main/java/org/springframework/integration/aop/MessageSourceMutator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2020 the original author or authors.
2+
* Copyright 2018-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,8 +16,9 @@
1616

1717
package org.springframework.integration.aop;
1818

19+
import org.jspecify.annotations.Nullable;
20+
1921
import org.springframework.integration.core.MessageSource;
20-
import org.springframework.lang.Nullable;
2122
import org.springframework.messaging.Message;
2223

2324
/**

spring-integration-core/src/main/java/org/springframework/integration/aop/MethodAnnotationPublisherMetadataSource.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,13 +25,14 @@
2525
import java.util.Set;
2626
import java.util.concurrent.ConcurrentHashMap;
2727

28+
import org.jspecify.annotations.Nullable;
29+
2830
import org.springframework.core.DefaultParameterNameDiscoverer;
2931
import org.springframework.core.ParameterNameDiscoverer;
3032
import org.springframework.core.annotation.MergedAnnotation;
3133
import org.springframework.core.annotation.MergedAnnotations;
3234
import org.springframework.expression.Expression;
3335
import org.springframework.integration.annotation.Publisher;
34-
import org.springframework.lang.Nullable;
3536
import org.springframework.messaging.handler.annotation.Header;
3637
import org.springframework.messaging.handler.annotation.Payload;
3738
import org.springframework.util.Assert;

spring-integration-core/src/main/java/org/springframework/integration/aop/ReceiveMessageAdvice.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 the original author or authors.
2+
* Copyright 2020-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,9 +18,9 @@
1818

1919
import org.aopalliance.intercept.MethodInterceptor;
2020
import org.aopalliance.intercept.MethodInvocation;
21+
import org.jspecify.annotations.Nullable;
2122

2223
import org.springframework.integration.core.MessageSource;
23-
import org.springframework.lang.Nullable;
2424
import org.springframework.messaging.Message;
2525
import org.springframework.messaging.PollableChannel;
2626

0 commit comments

Comments
 (0)