[TEST] Make type inference simpler
This commit is contained in:
parent
43b87e8f86
commit
e25ccb91ae
|
@ -236,10 +236,12 @@ public class InnerHitBuilderTests extends ESTestCase {
|
||||||
}));
|
}));
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
copy.setSorts(randomValueOtherThan(copy.getSorts(), () -> {
|
final List<SortBuilder<?>> sortBuilders = randomValueOtherThan(copy.getSorts(), () -> {
|
||||||
return randomListStuff(16,
|
List<SortBuilder<?>> builders = randomListStuff(16,
|
||||||
() -> SortBuilders.fieldSort(randomAsciiOfLengthBetween(5, 20)).order(randomFrom(SortOrder.values())));
|
() -> SortBuilders.fieldSort(randomAsciiOfLengthBetween(5, 20)).order(randomFrom(SortOrder.values())));
|
||||||
}));
|
return builders;
|
||||||
|
});
|
||||||
|
copy.setSorts(sortBuilders);
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
copy.setHighlightBuilder(randomValueOtherThan(copy.getHighlightBuilder(),
|
copy.setHighlightBuilder(randomValueOtherThan(copy.getHighlightBuilder(),
|
||||||
|
|
Loading…
Reference in New Issue