tweaks
This commit is contained in:
parent
c151f2137a
commit
6520395c1c
|
@ -23,7 +23,6 @@ import com.google.common.collect.Maps;
|
|||
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||
import org.elasticsearch.cluster.routing.IndexRoutingTable;
|
||||
import org.elasticsearch.cluster.routing.IndexShardRoutingTable;
|
||||
import org.elasticsearch.cluster.routing.ShardRouting;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.io.stream.Streamable;
|
||||
|
@ -33,7 +32,6 @@ import org.elasticsearch.common.xcontent.XContentBuilderString;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
|
|
@ -86,7 +86,7 @@ class JNAKernel32Library {
|
|||
}
|
||||
|
||||
List<Object> getCallbacks() {
|
||||
return Collections.unmodifiableList(new ArrayList<Object>(callbacks));
|
||||
return Collections.<Object>unmodifiableList(callbacks);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1107,7 +1107,7 @@ public class NettyTransport extends AbstractLifecycleComponent<Transport> implem
|
|||
newAllChannels.addAll(Arrays.asList(reg));
|
||||
newAllChannels.addAll(Arrays.asList(state));
|
||||
newAllChannels.addAll(Arrays.asList(ping));
|
||||
this.allChannels = Collections.unmodifiableList(allChannels);
|
||||
this.allChannels = Collections.unmodifiableList(allChannels );
|
||||
}
|
||||
|
||||
public boolean hasChannel(Channel channel) {
|
||||
|
|
Loading…
Reference in New Issue