From ea441ff827711ebf0dbf007e2582fbc42e9bded3 Mon Sep 17 00:00:00 2001 From: Falk Hanisch Date: Fri, 13 Dec 2024 03:33:50 +0100 Subject: [PATCH] GH-9713: Add `@Nullable` to `IntegrationEvent.getCause()` Fixes: #9713 (cherry picked from commit c677fc56f2087916e97a1bae9ef7b69996d977d8) --- .../org/springframework/integration/events/IntegrationEvent.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/events/IntegrationEvent.java b/spring-integration-core/src/main/java/org/springframework/integration/events/IntegrationEvent.java index 379c843261..1794432d12 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/events/IntegrationEvent.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/events/IntegrationEvent.java @@ -43,6 +43,7 @@ public abstract class IntegrationEvent extends ApplicationEvent { this.cause = cause; } + @Nullable public Throwable getCause() { return this.cause; }