small fix following rebase on master
This commit is contained in:
parent
66d0bdab0c
commit
0c449fee4a
|
@ -464,8 +464,7 @@ final class DocumentParser {
|
||||||
context.path().remove();
|
context.path().remove();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// TODO: why Strings.splitStringToArray instead of String.split?
|
final String[] paths = currentFieldName.split("\\.");
|
||||||
final String[] paths = Strings.splitStringToArray(currentFieldName, '.');
|
|
||||||
currentFieldName = paths[paths.length - 1];
|
currentFieldName = paths[paths.length - 1];
|
||||||
Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, mapper);
|
Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, mapper);
|
||||||
ObjectMapper parentMapper = parentMapperTuple.v2();
|
ObjectMapper parentMapper = parentMapperTuple.v2();
|
||||||
|
@ -509,8 +508,7 @@ final class DocumentParser {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// TODO: why Strings.splitStringToArray instead of String.split?
|
final String[] paths = arrayFieldName.split("\\.");
|
||||||
final String[] paths = Strings.splitStringToArray(arrayFieldName, '.');
|
|
||||||
arrayFieldName = paths[paths.length - 1];
|
arrayFieldName = paths[paths.length - 1];
|
||||||
lastFieldName = arrayFieldName;
|
lastFieldName = arrayFieldName;
|
||||||
Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, parentMapper);
|
Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, parentMapper);
|
||||||
|
@ -574,8 +572,7 @@ final class DocumentParser {
|
||||||
parseObjectOrField(context, mapper);
|
parseObjectOrField(context, mapper);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// TODO: why Strings.splitStringToArray instead of String.split?
|
final String[] paths = currentFieldName.split("\\.");
|
||||||
final String[] paths = Strings.splitStringToArray(currentFieldName, '.');
|
|
||||||
currentFieldName = paths[paths.length - 1];
|
currentFieldName = paths[paths.length - 1];
|
||||||
Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, parentMapper);
|
Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, parentMapper);
|
||||||
parentMapper = parentMapperTuple.v2();
|
parentMapper = parentMapperTuple.v2();
|
||||||
|
|
Loading…
Reference in New Issue