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:
Gary Russell
2016-05-03 09:07:51 -04:00
parent 6c774638cc
commit 29fc5e6380
2 changed files with 7 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);
}
/**