This commit is contained in:
Ryan Ernst 2015-08-19 09:37:35 -07:00
parent c151f2137a
commit 6520395c1c
3 changed files with 2 additions and 4 deletions

View File

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

View File

@ -86,7 +86,7 @@ class JNAKernel32Library {
}
List<Object> getCallbacks() {
return Collections.unmodifiableList(new ArrayList<Object>(callbacks));
return Collections.<Object>unmodifiableList(callbacks);
}
/**

View File

@ -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) {