+ "true from " + prevTrue + " by "
+ diffTrueHits + ", false from " + prevFalse
+ " by " + diffFalseHits);
}
} else if (cd instanceof SwitchData) {
SwitchData lsd = (SwitchData) cd;
result.addLineSwitch(lld.getLineNumber(), i, 0, 0, lsd.getMaxBranches());
long[] prevBranchHits = new long[lsd
.getNumberOfValidBranches() - 1];
long prevDefaultHits = 0;
if (smaller != null) {
LineData sld = smaller.getLineCoverage(lld
.getLineNumber());
if (sld != null) {
SwitchData ssd = (SwitchData) sld
.getConditionData(i);
if (ssd != null) {
for (int j = 0; j < prevBranchHits.length; j++) {
// returns -1 on an error condition.
// probably never happens in normal
// situation, but does in unit test.
prevBranchHits[j] = Math.max(0,
ssd.getHits(j));
}
prevDefaultHits = ssd.getDefaultHits();
}
}
}
for (int j = 0; j < prevBranchHits.length; j++) {
long diffBranchHits = lsd.getHits(j)