]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/coverage/CoverageUtils.java
Sync git svn branch with SVN repository r33249.
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / module / coverage / CoverageUtils.java
index a70651cb75fa7e551cb9bd35cf022a0b98d26a88..59eb2abea2596d17bf0472121da80a59e3d8170d 100644 (file)
@@ -20,7 +20,7 @@ public class CoverageUtils {
             int totalFunctionCodeSize = 0;\r
             int uncoveredFunctionCodeSize = 0;\r
             for(BranchPoint branchPoint : entry.getValue()) {\r
-                totalFunctionCodeSize += branchPoint.codeSize;\r
+                totalFunctionCodeSize += branchPoint.getCodeSize();\r
                 uncoveredFunctionCodeSize += uncoveredCodeSize(branchPoint);\r
             }\r
             int coveredFunctionCodeSize = totalFunctionCodeSize - uncoveredFunctionCodeSize;\r
@@ -99,11 +99,11 @@ public class CoverageUtils {
     }\r
 \r
     private static int uncoveredCodeSize(BranchPoint branchPoint) {\r
-        if(branchPoint.visitCounter == 0)\r
-            return branchPoint.codeSize;\r
+        if(branchPoint.getVisitCounter() == 0)\r
+            return branchPoint.getCodeSize();\r
         else {\r
             int sum = 0;\r
-            for(BranchPoint child : branchPoint.children)\r
+            for(BranchPoint child : branchPoint.getChildren())\r
                 sum += uncoveredCodeSize(child);\r
             return sum;\r
         }\r