Internal: remove unused constructor and adjust methods visibility in DelegatingActionListener

This commit is contained in:
javanna 2014-09-03 11:04:01 +02:00 committed by Luca Cavanna
parent 4c21db0dca
commit 4364b59846
1 changed files with 2 additions and 7 deletions

View File

@ -22,7 +22,6 @@
*/
package org.elasticsearch.action.support;
import org.elasticsearch.ElasticsearchIllegalStateException;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionResponse;
@ -30,15 +29,11 @@ public abstract class DelegatingActionListener<Instigator extends ActionResponse
ActionListener<Delegated> delegatedActionListener;
private DelegatingActionListener(){
throw new ElasticsearchIllegalStateException("Constructor for " + DelegatingActionListener.class.toString() + " can't be called.");
}
public DelegatingActionListener(final ActionListener<Delegated> listener) {
protected DelegatingActionListener(final ActionListener<Delegated> listener) {
this.delegatedActionListener = listener;
}
public abstract Delegated getDelegatedFromInstigator(Instigator response);
protected abstract Delegated getDelegatedFromInstigator(Instigator response);
@Override
public final void onResponse(Instigator response) {