diff --git a/server/src/test/java/org/elasticsearch/search/sort/AbstractSortTestCase.java b/server/src/test/java/org/elasticsearch/search/sort/AbstractSortTestCase.java index edd04dab567eb..5fcd4eeeb2636 100644 --- a/server/src/test/java/org/elasticsearch/search/sort/AbstractSortTestCase.java +++ b/server/src/test/java/org/elasticsearch/search/sort/AbstractSortTestCase.java @@ -195,11 +195,7 @@ protected final SearchExecutionContext createMockSearchExecutionContext(IndexSea return builder.build(new IndexFieldDataCache.None(), null); }; NestedLookup nestedLookup = NestedLookup.build( - List.of( - new NestedObjectMapper.Builder("path", IndexVersion.current()).build( - MapperBuilderContext.root(false, false) - ) - ) + List.of(new NestedObjectMapper.Builder("path", IndexVersion.current()).build(MapperBuilderContext.root(false, false))) ); return new SearchExecutionContext( 0,