INT-3517: Fix HTTP Rome Dep. Logic for SF in CP

JIRA: https://jira.spring.io/browse/INT-3517
This commit is contained in:
Artem Bilan
2014-09-10 19:45:35 +03:00
committed by Gary Russell
parent a46da286db
commit 3b40d8c063

View File

@@ -181,7 +181,7 @@ public abstract class HttpRequestHandlingEndpointSupport extends MessagingGatewa
}
//The 'rometools' has been introduced since Spring Framework 4.1, hence we should check the version
// of Spring Framework using the class 'org.springframework.http.RequestEntity' from that version.
if ((spring41Present && romeToolsPresent) || romePresent) {
if ((spring41Present && romeToolsPresent) || (!spring41Present && romePresent)) {
this.defaultMessageConverters.add(new AtomFeedHttpMessageConverter());
this.defaultMessageConverters.add(new RssChannelHttpMessageConverter());
if (logger.isDebugEnabled()) {