Skip to content

Commit e6d8923

Browse files
author
‘niuerzhuang’
committed
fix: Method call chain merge.
1 parent 0cc589a commit e6d8923

File tree

1 file changed

+4
-2
lines changed
  • dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/graphy

1 file changed

+4
-2
lines changed

dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/graphy/GraphBuilder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ public static String convertToReport(List<GraphNode> nodeList) {
109109
detail.put(ReportKey.METHOD_POOL, methodPool);
110110
detail.put(ReportKey.TRACE_ID, ContextManager.currentTraceId());
111111

112-
for (GraphNode node : nodeList) {
113-
methodPool.put(node.toJson());
112+
int nodeListSize = nodeList.size();
113+
for (int i=0;i<nodeListSize;i++){
114+
methodPool.add(nodeList.get(0).toJson());
115+
nodeList.remove(nodeList.get(0));
114116
}
115117

116118
return report.toString();

0 commit comments

Comments
 (0)