Skip to content

Commit

Permalink
GH-8750: Add @Nullable to getRegistrationById()
Browse files Browse the repository at this point in the history
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`**
  • Loading branch information
mrpiggi committed Oct 10, 2023
1 parent 75fcdda commit 49cd14c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public interface IntegrationFlowContext {
* @param flowId the bean name to obtain
* @return the IntegrationFlowRegistration for provided {@code id} or {@code null}
*/
@Nullable
IntegrationFlowRegistration getRegistrationById(String flowId);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private void registerBean(Object bean, @Nullable String beanNameArg, String pare
* @return the IntegrationFlowRegistration for provided {@code id} or {@code null}
*/
@Override
@Nullable
public IntegrationFlowRegistration getRegistrationById(String flowId) {
return this.registry.get(flowId);
}
Expand Down

0 comments on commit 49cd14c

Please sign in to comment.