private LineData getOrCreateLine(int classLine) { LineData ld = classData.getLineData(classLine); if (ld == null) { ld = classData.addLine(classLine, null, null); } return ld; } }
public void addLineJump(int lineNumber, int branchNumber) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData != null) { lineData.addJump(branchNumber); this.branches.put(Integer.valueOf(lineNumber), lineData); } } finally { lock.unlock(); } }
private LineData getOrCreateLine(int classLine) { LineData ld = classData.getLineData(classLine); if (ld == null) { ld = classData.addLine(classLine, null, null); } return ld; } }
public void addLineSwitch(int lineNumber, int switchNumber, int min, int max, int maxBranches) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData != null) { lineData.addSwitch(switchNumber, min, max, maxBranches); this.branches.put(Integer.valueOf(lineNumber), lineData); } } finally { lock.unlock(); } }
public void addLineJump(int lineNumber, int branchNumber) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData != null) { lineData.addJump(branchNumber); this.branches.put(Integer.valueOf(lineNumber), lineData); } } finally { lock.unlock(); } }
public void addLineSwitch(int lineNumber, int switchNumber, int min, int max, int maxBranches) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData != null) { lineData.addSwitch(switchNumber, min, max, maxBranches); this.branches.put(Integer.valueOf(lineNumber), lineData); } } finally { lock.unlock(); } }
public void addLineJump(int lineNumber, int branchNumber) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData != null) { lineData.addJump(branchNumber); this.branches.put(Integer.valueOf(lineNumber), lineData); } } finally { lock.unlock(); } }
public void addLineSwitch(int lineNumber, int switchNumber, int[] keys) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData != null) { lineData.addSwitch(switchNumber, keys); this.branches.put(Integer.valueOf(lineNumber), lineData); } } finally { lock.unlock(); } }
public void addLineSwitch(int lineNumber, int switchNumber, int min, int max) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData != null) { lineData.addSwitch(switchNumber, min, max); this.branches.put(Integer.valueOf(lineNumber), lineData); } } finally { lock.unlock(); } }
public LineData addLine(int lineNumber, String methodName, String methodDescriptor) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) { lineData = new LineData(lineNumber); // Each key is a line number in this class, stored as an Integer object. // Each value is information about the line, stored as a LineData object. children.put(new Integer(lineNumber), lineData); } lineData.setMethodNameAndDescriptor(methodName, methodDescriptor); // methodName and methodDescriptor can be null when cobertura.ser with // no line information was loaded (or was not loaded at all). if (methodName != null && methodDescriptor != null) methodNamesAndDescriptors.add(methodName + methodDescriptor); return lineData; } finally { lock.unlock(); } }
public LineData addLine(int lineNumber, String methodName, String methodDescriptor) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) { lineData = new LineData(lineNumber); // Each key is a line number in this class, stored as an Integer object. // Each value is information about the line, stored as a LineData object. children.put(new Integer(lineNumber), lineData); } lineData.setMethodNameAndDescriptor(methodName, methodDescriptor); // methodName and methodDescriptor can be null when cobertura.ser with // no line information was loaded (or was not loaded at all). if (methodName != null && methodDescriptor != null) methodNamesAndDescriptors.add(methodName + methodDescriptor); return lineData; } finally { lock.unlock(); } }
/** * Increment the number of hits for a particular line of code. * * @param lineNumber the line of code to increment the number of hits. * @param hits how many times the piece was called */ public void touch(int lineNumber, int hits) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touch(hits); } finally { lock.unlock(); } }
/** * Increment the number of hits for a particular line of code. * * @param lineNumber the line of code to increment the number of hits. * @param hits how many times the piece was called */ public void touch(int lineNumber, int hits) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touch(hits); } finally { lock.unlock(); } }
/** * Increments the number of hits for particular hit counter of particular switch branch on particular line number. * * @param lineNumber The line of code where the branch is * @param switchNumber The switch on the line to change the hit counter * @param branch The hit counter * @param hits how many times the piece was called */ public void touchSwitch(int lineNumber, int switchNumber, int branch, int hits) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touchSwitch(switchNumber, branch, hits); } finally { lock.unlock(); } }
/** * Increments the number of hits for particular hit counter of particular branch on particular line number. * * @param lineNumber The line of code where the branch is * @param branchNumber The branch on the line to change the hit counter * @param branch The hit counter (true or false) */ public void touchJump(int lineNumber, int branchNumber, boolean branch) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touchJump(branchNumber, branch); } finally { lock.unlock(); } }
/** * Increments the number of hits for particular hit counter of particular branch on particular line number. * * @param lineNumber The line of code where the branch is * @param branchNumber The branch on the line to change the hit counter * @param branch The hit counter (true or false) * @param hits how many times the piece was called */ public void touchJump(int lineNumber, int branchNumber, boolean branch, int hits) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touchJump(branchNumber, branch, hits); } finally { lock.unlock(); } }
/** * Increment the number of hits for a particular line of code. * * @param lineNumber the line of code to increment the number of hits. */ public void touch(int lineNumber) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touch(); } finally { lock.unlock(); } }
/** * Increments the number of hits for particular hit counter of particular switch branch on particular line number. * * @param lineNumber The line of code where the branch is * @param switchNumber The switch on the line to change the hit counter * @param branch The hit counter */ public void touchSwitch(int lineNumber, int switchNumber, int branch) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touchSwitch(switchNumber, branch); } finally { lock.unlock(); } }
/** * Increments the number of hits for particular hit counter of particular switch branch on particular line number. * * @param lineNumber The line of code where the branch is * @param switchNumber The switch on the line to change the hit counter * @param branch The hit counter * @param hits how many times the piece was called */ public void touchSwitch(int lineNumber, int switchNumber, int branch, int hits) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touchSwitch(switchNumber, branch, hits); } finally { lock.unlock(); } }
/** * Increments the number of hits for particular hit counter of particular branch on particular line number. * * @param lineNumber The line of code where the branch is * @param branchNumber The branch on the line to change the hit counter * @param branch The hit counter (true or false) * @param hits how many times the piece was called */ public void touchJump(int lineNumber, int branchNumber, boolean branch, int hits) { lock.lock(); try { LineData lineData = getLineData(lineNumber); if (lineData == null) lineData = addLine(lineNumber, null, null); lineData.touchJump(branchNumber, branch, hits); } finally { lock.unlock(); } }