Help JDK 9 type inference in ShardStateIT.java
The JDK 9 compiler type inference gets confused, so we need to help it here.
This commit is contained in:
parent
4b801f54d1
commit
79d3415210
|
@ -50,8 +50,8 @@ public class ShardStateIT extends ESIntegTestCase {
|
||||||
logger.info("--> waiting for a yellow index");
|
logger.info("--> waiting for a yellow index");
|
||||||
// JDK 9 type inference gets confused, so we have to help the
|
// JDK 9 type inference gets confused, so we have to help the
|
||||||
// type inference
|
// type inference
|
||||||
assertBusy(() -> assertThat(client().admin().cluster().prepareHealth().get().getStatus(),
|
assertBusy(((Runnable) () -> assertThat(client().admin().cluster().prepareHealth().get().getStatus(),
|
||||||
equalTo(ClusterHealthStatus.YELLOW)));
|
equalTo(ClusterHealthStatus.YELLOW))));
|
||||||
|
|
||||||
final long term0 = shard == 0 ? 2 : 1;
|
final long term0 = shard == 0 ? 2 : 1;
|
||||||
final long term1 = shard == 1 ? 2 : 1;
|
final long term1 = shard == 1 ? 2 : 1;
|
||||||
|
|
Loading…
Reference in New Issue