Fix Call Overridable Method From Ctor
https://sonar.spring.io/issues/search#componentRoots=org.springframework.integration%3Aspring-integration|createdAt=2016-05-03T02%3A58%3A49%2B0000|sort=UPDATE_DATE|asc=false
This commit is contained in:
@@ -62,10 +62,14 @@ public abstract class AbstractMessageGroupStore extends AbstractBatchingMessageG
|
||||
|
||||
private boolean lazyLoadMessageGroups = true;
|
||||
|
||||
public AbstractMessageGroupStore() {
|
||||
protected AbstractMessageGroupStore() {
|
||||
super();
|
||||
}
|
||||
|
||||
protected AbstractMessageGroupStore(boolean lazyLoadMessageGroups) {
|
||||
this.lazyLoadMessageGroups = lazyLoadMessageGroups;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void setBeanFactory(BeanFactory beanFactory) {
|
||||
this.beanFactory = beanFactory;
|
||||
|
||||
@@ -121,18 +121,14 @@ public class SimpleMessageStore extends AbstractMessageGroupStore
|
||||
* @since 4.3
|
||||
*/
|
||||
public SimpleMessageStore(int individualCapacity, int groupCapacity, long upperBoundTimeout,
|
||||
LockRegistry lockRegistry) {
|
||||
LockRegistry lockRegistry) {
|
||||
super(false);
|
||||
Assert.notNull(lockRegistry, "The LockRegistry cannot be null");
|
||||
this.individualUpperBound = new UpperBound(individualCapacity);
|
||||
this.individualCapacity = individualCapacity;
|
||||
this.groupCapacity = groupCapacity;
|
||||
this.lockRegistry = lockRegistry;
|
||||
this.upperBoundTimeout = upperBoundTimeout;
|
||||
disableLazyLoadMessageGroups();
|
||||
}
|
||||
|
||||
private void disableLazyLoadMessageGroups() {
|
||||
super.setLazyLoadMessageGroups(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user