The parseObject method in DocumentParse can be void. There is no point in the code that actually expects the return, plus the variable created for it was never actually used. (#24350)

This commit is contained in:
Koen De Groote 2017-04-27 00:54:23 +02:00 committed by Lee Hinman
parent d387dcfd6c
commit 7f9d84cb1a
1 changed files with 1 additions and 4 deletions

View File

@ -455,10 +455,9 @@ final class DocumentParser {
}
}
private static ObjectMapper parseObject(final ParseContext context, ObjectMapper mapper, String currentFieldName) throws IOException {
private static void parseObject(final ParseContext context, ObjectMapper mapper, String currentFieldName) throws IOException {
assert currentFieldName != null;
ObjectMapper update = null;
Mapper objectMapper = getMapper(mapper, currentFieldName);
if (objectMapper != null) {
context.path().add(currentFieldName);
@ -492,8 +491,6 @@ final class DocumentParser {
context.path().remove();
}
}
return update;
}
private static void parseArray(ParseContext context, ObjectMapper parentMapper, String lastFieldName) throws IOException {