Skip to content

Commit 49cd14c

Browse files
authored
GH-8750: Add @Nullable to getRegistrationById()
Fixes #8750 * annotate `IntegrationFlowRegistration.getRegistrationById(String flowId)` with `@org.springframework.lang.Nullable` * annotate `StandardIntegrationFlowContext.getRegistrationById(String flowId)` with `@org.springframework.lang.Nullable` **Cherry-pick to `6.1.x` & `6.0.x`**
1 parent 75fcdda commit 49cd14c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spring-integration-core/src/main/java/org/springframework/integration/dsl/context/IntegrationFlowContext.java

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public interface IntegrationFlowContext {
7070
* @param flowId the bean name to obtain
7171
* @return the IntegrationFlowRegistration for provided {@code id} or {@code null}
7272
*/
73+
@Nullable
7374
IntegrationFlowRegistration getRegistrationById(String flowId);
7475

7576
/**

spring-integration-core/src/main/java/org/springframework/integration/dsl/context/StandardIntegrationFlowContext.java

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ private void registerBean(Object bean, @Nullable String beanNameArg, String pare
178178
* @return the IntegrationFlowRegistration for provided {@code id} or {@code null}
179179
*/
180180
@Override
181+
@Nullable
181182
public IntegrationFlowRegistration getRegistrationById(String flowId) {
182183
return this.registry.get(flowId);
183184
}

0 commit comments

Comments
 (0)