Nullability refinements (based on IntelliJ IDEA 2018.1 introspection)
Issue: SPR-15756
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -268,16 +268,13 @@ abstract class AbstractListenerContainerParser implements BeanDefinitionParser {
|
||||
|
||||
boolean replyPubSubDomain = false;
|
||||
String replyDestinationType = containerEle.getAttribute(RESPONSE_DESTINATION_TYPE_ATTRIBUTE);
|
||||
if (DESTINATION_TYPE_TOPIC.equals(replyDestinationType)) {
|
||||
if (!StringUtils.hasText(replyDestinationType)) {
|
||||
replyPubSubDomain = pubSubDomain; // the default: same value as pubSubDomain
|
||||
}
|
||||
else if (DESTINATION_TYPE_TOPIC.equals(replyDestinationType)) {
|
||||
replyPubSubDomain = true;
|
||||
}
|
||||
else if (DESTINATION_TYPE_QUEUE.equals(replyDestinationType)) {
|
||||
replyPubSubDomain = false;
|
||||
}
|
||||
else if (!StringUtils.hasText(replyDestinationType)) {
|
||||
replyPubSubDomain = pubSubDomain; // the default: same value as pubSubDomain
|
||||
}
|
||||
else if (StringUtils.hasText(replyDestinationType)) {
|
||||
else if (!DESTINATION_TYPE_QUEUE.equals(replyDestinationType)) {
|
||||
parserContext.getReaderContext().error("Invalid listener container 'response-destination-type': only " +
|
||||
"\"queue\", \"topic\" supported.", containerEle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user