remove casting

This commit is contained in:
Shay Banon 2011-10-17 00:43:25 +02:00
parent bcd582b8c1
commit bfb4666b3d
1 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ import org.elasticsearch.index.service.IndexService;
import org.elasticsearch.index.settings.IndexSettings; import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.index.shard.IndexShardState; import org.elasticsearch.index.shard.IndexShardState;
import org.elasticsearch.index.shard.service.IndexShard; import org.elasticsearch.index.shard.service.IndexShard;
import org.elasticsearch.index.shard.service.InternalIndexShard;
import org.elasticsearch.indices.IndicesLifecycle; import org.elasticsearch.indices.IndicesLifecycle;
import org.elasticsearch.indices.IndicesService; import org.elasticsearch.indices.IndicesService;
@ -197,7 +196,7 @@ public class PercolatorService extends AbstractIndexComponent {
// add a listener that will update based on changes done to the _percolate index // add a listener that will update based on changes done to the _percolate index
// the relevant indices with loaded queries // the relevant indices with loaded queries
if (indexShard.shardId().index().name().equals(INDEX_NAME)) { if (indexShard.shardId().index().name().equals(INDEX_NAME)) {
((InternalIndexShard) indexShard).indexingService().addListener(realTimePercolatorOperationListener); indexShard.indexingService().addListener(realTimePercolatorOperationListener);
} }
} }