Skip to content

Commit f57a16e

Browse files
GH-10083: Apply Nullability to core history package
Related to: #10083 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent 52c00e7 commit f57a16e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

spring-integration-core/src/main/java/org/springframework/integration/history/HistoryWritingMessagePostProcessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.integration.history;
1818

19+
import org.jspecify.annotations.Nullable;
20+
1921
import org.springframework.integration.support.DefaultMessageBuilderFactory;
2022
import org.springframework.integration.support.MessageBuilderFactory;
2123
import org.springframework.integration.support.management.TrackableComponent;
@@ -29,7 +31,7 @@
2931
*/
3032
public class HistoryWritingMessagePostProcessor implements MessagePostProcessor {
3133

32-
private volatile TrackableComponent trackableComponent;
34+
private volatile @Nullable TrackableComponent trackableComponent;
3335

3436
private volatile boolean shouldTrack;
3537

spring-integration-core/src/main/java/org/springframework/integration/history/MessageHistoryConfigurer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public class MessageHistoryConfigurer implements ManageableSmartLifecycle, BeanF
6363

6464
private String[] componentNamePatterns = {"*"};
6565

66+
@SuppressWarnings("NullAway.Init")
6667
private ListableBeanFactory beanFactory;
6768

6869
private boolean autoStartup = true;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
22
* Provides classes supporting the capture of message history.
33
*/
4+
@org.jspecify.annotations.NullMarked
45
package org.springframework.integration.history;

0 commit comments

Comments
 (0)