diff --git a/arex-compare-core/src/main/java/com/arextest/diff/handler/WhitelistHandler.java b/arex-compare-core/src/main/java/com/arextest/diff/handler/WhitelistHandler.java index 927a946..cb323f7 100644 --- a/arex-compare-core/src/main/java/com/arextest/diff/handler/WhitelistHandler.java +++ b/arex-compare-core/src/main/java/com/arextest/diff/handler/WhitelistHandler.java @@ -103,12 +103,10 @@ private void getInclusionsObj(Object obj, Object whiteObj, List white) { tempWhiteObj = JacksonHelperUtil.getObjectNode(); getInclusionsObj(tempObj, tempWhiteObj, white.subList(i, white.size())); whiteObjArr.add((ObjectNode) tempWhiteObj); -// whiteObjArr.set(j, (ObjectNode) tempWhiteObj); } else if (tempObj instanceof ArrayNode) { tempWhiteObj = JacksonHelperUtil.getArrayNode(); getInclusionsObj(tempObj, tempWhiteObj, white.subList(i, white.size())); whiteObjArr.add((ArrayNode) tempWhiteObj); -// whiteObjArr.set(j, (ArrayNode) tempWhiteObj); } } } diff --git a/arex-compare-core/src/main/java/com/arextest/diff/utils/ExpressionNodeParser.java b/arex-compare-core/src/main/java/com/arextest/diff/utils/ExpressionNodeParser.java index c9f1e0a..a28affa 100644 --- a/arex-compare-core/src/main/java/com/arextest/diff/utils/ExpressionNodeParser.java +++ b/arex-compare-core/src/main/java/com/arextest/diff/utils/ExpressionNodeParser.java @@ -86,21 +86,4 @@ private static MutablePair, Boolean> registerExpressi return new MutablePair<>(result, isExpression); } -// private static List convertNameNode(List exclusion) { -// -// if (exclusion == null || exclusion.isEmpty()) { -// return null; -// } -// -// List result = new ArrayList<>(); -// for (String item : exclusion) { -// // judge if it is a expression -// if (!item.startsWith(Constant.EXPRESSION_PATH_IDENTIFIER_START) || !item.endsWith( -// Constant.EXPRESSION_PATH_IDENTIFIER_END)) { -// result.add(new ExpressionNodeEntity(item, ExpressionNodeType.NAME_NODE)); -// } -// } -// return result; -// } - }