in src/com/intellij/rt/coverage/data/instructions/LineInstructions.java [59:87]
public void merge(CoverageData coverageData) {
final LineInstructions other = (LineInstructions) coverageData;
myInstructions = Math.max(myInstructions, other.myInstructions);
if (other.myJumps != null) {
if (myJumps == null) {
myJumps = new ArrayList<JumpInstructions>();
}
for (int i = myJumps.size(); i < other.myJumps.size(); i++) {
myJumps.add(new JumpInstructions());
}
for (int i = 0; i < other.myJumps.size(); i++) {
myJumps.get(i).merge(other.myJumps.get(i));
}
}
if (other.mySwitches != null) {
if (mySwitches == null) {
mySwitches = new ArrayList<SwitchInstructions>();
}
for (int i = mySwitches.size(); i < other.mySwitches.size(); i++) {
mySwitches.add(new SwitchInstructions(other.mySwitches.get(i).size()));
}
for (int i = 0; i < other.mySwitches.size(); i++) {
mySwitches.get(i).merge(other.mySwitches.get(i));
}
}
}