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

View File

@ -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);
} }