mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
fix checkstyle
Original commit: elastic/x-pack-elasticsearch@b86e94228b
This commit is contained in:
parent
8fdeedf61d
commit
b9205142a4
@ -98,10 +98,11 @@ public class SchedulerConfig extends ToXContentToBytes implements Writeable {
|
|||||||
List<SearchSourceBuilder.ScriptField> parsedScriptFields = new ArrayList<>();
|
List<SearchSourceBuilder.ScriptField> parsedScriptFields = new ArrayList<>();
|
||||||
while (p.nextToken() != XContentParser.Token.END_OBJECT) {
|
while (p.nextToken() != XContentParser.Token.END_OBJECT) {
|
||||||
parsedScriptFields.add(new SearchSourceBuilder.ScriptField(new QueryParseContext(p, ParseFieldMatcher.STRICT)));
|
parsedScriptFields.add(new SearchSourceBuilder.ScriptField(new QueryParseContext(p, ParseFieldMatcher.STRICT)));
|
||||||
}
|
}
|
||||||
Collections.sort(parsedScriptFields, Comparator.comparing((Function<SearchSourceBuilder.ScriptField, String>) f -> f.fieldName()));
|
Collections.sort(parsedScriptFields,
|
||||||
return parsedScriptFields;
|
Comparator.comparing((Function<SearchSourceBuilder.ScriptField, String>) f -> f.fieldName()));
|
||||||
}, SCRIPT_FIELDS);
|
return parsedScriptFields;
|
||||||
|
}, SCRIPT_FIELDS);
|
||||||
PARSER.declareInt(Builder::setScrollSize, SCROLL_SIZE);
|
PARSER.declareInt(Builder::setScrollSize, SCROLL_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user