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:
Jason Tedor 2016-04-13 21:38:17 -04:00
parent 4b801f54d1
commit 79d3415210
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ public class ShardStateIT extends ESIntegTestCase {
logger.info("--> waiting for a yellow index");
// JDK 9 type inference gets confused, so we have to help the
// type inference
assertBusy(() -> assertThat(client().admin().cluster().prepareHealth().get().getStatus(),
equalTo(ClusterHealthStatus.YELLOW)));
assertBusy(((Runnable) () -> assertThat(client().admin().cluster().prepareHealth().get().getStatus(),
equalTo(ClusterHealthStatus.YELLOW))));
final long term0 = shard == 0 ? 2 : 1;
final long term1 = shard == 1 ? 2 : 1;