fix compilation with Java 8

This commit is contained in:
Xavier Léauté 2014-08-12 14:02:08 -07:00
parent 161c2f0fff
commit b448deeca0
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public class RetryQueryRunnerTest
@Override
public Sequence run(Query query, Map context)
{
if (context.get("count") == 0) {
if ((int)context.get("count") == 0) {
((List) context.get(RetryQueryRunner.missingSegments)).add(
new SegmentDescriptor(
new Interval(
@ -368,4 +368,4 @@ public class RetryQueryRunnerTest
Assert.assertTrue("Should have one entry in the list of missing segments", ((List) context.get(RetryQueryRunner.missingSegments)).size() == 1);
}
}
}