Skip to content

Commit 9e16062

Browse files
committed
fix: XmlBeanDefinitionBuilder setIfExclusiveAttributeDefined if/else logic
1 parent 178b5b6 commit 9e16062

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

int-aws-support/src/main/java/org/springframework/integration/aws/config/xml/XmlBeanDefinitionBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ public XmlBeanDefinitionBuilder setIfExclusiveAttributeDefined(String attribute1
149149
var value2 = element.getAttribute(attribute2);
150150
if (StringUtils.hasText(value1) && StringUtils.hasText(value2)) {
151151
error(attribute1 + " and " + attribute2 + " attributes are mutually exclusive");
152-
} if (StringUtils.hasText(value1)) {
152+
} else if (StringUtils.hasText(value1)) {
153153
arg1.accept(builder, value1);
154-
} else {
154+
} else if (StringUtils.hasText(value2)) {
155155
arg2.accept(builder, value2);
156156
}
157157
return this;

0 commit comments

Comments
 (0)