Sonar Fixes after Checkstyle Updates

https://sonar.spring.io/issues/search#componentRoots=org.springframework.integration%3Aspring-integration|createdAt=2016-04-07T03%3A04%3A31%2B0000|sort=UPDATE_DATE|asc=false
This commit is contained in:
Gary Russell
2016-04-07 09:01:17 -04:00
parent 57f96bb759
commit 020aa019a1
3 changed files with 5 additions and 8 deletions

View File

@@ -80,11 +80,9 @@ public abstract class AbstractPersistentAcceptOnceFileListFilter<F> extends Abst
return true;
}
// same value in store
if (!isEqual(file, oldValue)) {
if (this.store.replace(key, oldValue, newValue)) {
flushIfNeeded();
return true;
}
if (!isEqual(file, oldValue) && this.store.replace(key, oldValue, newValue)) {
flushIfNeeded();
return true;
}
return false;
}

View File

@@ -31,7 +31,7 @@ import org.springframework.integration.mapping.HeaderMapper;
*/
public abstract class JmsHeaderMapper implements HeaderMapper<Message> {
String CONTENT_TYPE_PROPERTY = "content_type";
protected final static String CONTENT_TYPE_PROPERTY = "content_type";
}

View File

@@ -23,11 +23,10 @@ package org.springframework.integration.xmpp.core;
*/
public final class XmppContextUtils {
public static final String XMPP_CONNECTION_BEAN_NAME = "xmppConnection";
private XmppContextUtils() {
super();
}
public static String XMPP_CONNECTION_BEAN_NAME = "xmppConnection";
}