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:
parent
d387dcfd6c
commit
7f9d84cb1a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue