Массивы в json

This commit is contained in:
2025-05-06 16:26:47 +03:00
parent b46f86bebb
commit 6e0956e3e5
9 changed files with 114 additions and 53 deletions

View File

@@ -55,8 +55,6 @@ public class SPF_GetGCovInfo extends SilentSapforPass {
}
protected void unpack(String packed) throws Exception {
GCOVJson allJson = Utils_.gson.fromJson(packed, GCOVJson.class);
// System.out.println("packed="+ Utils_.Brackets(packed));
// System.out.println(allJson.allGCov.size());
for (FileGCOVJson fileJson: allJson.allGCov){
fileJson.file = Utils_.toW(fileJson.file);
//--
@@ -65,10 +63,9 @@ public class SPF_GetGCovInfo extends SilentSapforPass {
if (lineJson.line > 0) {
int v_line = lineJson.line - 1;
long v_execution = (lineJson.execution >= 0) ? lineJson.execution : 0;
// System.out.println("line="+v_line+"/"+v_execution);
if (!projectFile.gcov_info.line_info.containsKey(v_line)) {
projectFile.gcov_info.add_line(v_line, v_execution);
// System.out.println("+");
}
}
}