Skip to content

ComplexObjectJsonNeat类问题 #18

@Silen01

Description

@Silen01

这个类的这块是不是有缺陷 ComplexObjectJsonNeat

HashSet ignorePath = RunTimeDataFactory.getOptionInstance().getIgnorePath();
List mappingKeys = keyMap.stream().filter(mappingKey -> {
String actualTravelPath = PathUtil.getObjectPath(travelPath.getAbstractTravelPath()) + mappingKey.getActualKey();
String expectTravelPath = PathUtil.getObjectPath(travelPath.getAbstractTravelPath()) + mappingKey.getActualKey();
if (ignorePath.contains(actualTravelPath) || ignorePath.contains(expectTravelPath) ) {
return false;
}
return true;
}).collect(Collectors.toList());
新json如果删除掉某个配置忽略path的field,那么会认为新老json不相等,实际应该是相等的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions