Skip to content

Commit

Permalink
GH-2956 Fix assertion for multiple binders
Browse files Browse the repository at this point in the history
Resolves #2956
  • Loading branch information
olegz committed Jun 4, 2024
1 parent 7c20624 commit d6550ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ private String resolveFromDefaultBinder() {
if (binderTypes.entrySet().size() > 1 && getBindingServiceProperties().getDefaultBinder() != null) {
return getBindingServiceProperties().getDefaultBinder();
}
Assert.isTrue(binderTypes.entrySet().size() == 1, "More than one binder types found, but no binder specified on the binding");
return binderTypes.keySet().iterator().next();
Assert.isTrue(binderTypes.entrySet().size() <= 1, "More than one binder types found, but no binder specified on the binding");
return (binderTypes.entrySet().size() < 1) ? null : binderTypes.keySet().iterator().next();
}

/**
Expand Down

0 comments on commit d6550ed

Please sign in to comment.