fix checkstyle

Original commit: elastic/x-pack-elasticsearch@b86e94228b
This commit is contained in:
Colin Goodheart-Smithe 2017-01-05 16:29:18 +00:00
parent 8fdeedf61d
commit b9205142a4
1 changed files with 5 additions and 4 deletions

View File

@ -99,7 +99,8 @@ public class SchedulerConfig extends ToXContentToBytes implements Writeable {
while (p.nextToken() != XContentParser.Token.END_OBJECT) {
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,
Comparator.comparing((Function<SearchSourceBuilder.ScriptField, String>) f -> f.fieldName()));
return parsedScriptFields;
}, SCRIPT_FIELDS);
PARSER.declareInt(Builder::setScrollSize, SCROLL_SIZE);