Source:
protected static SubSingleBenchmarkResult createMerge(SingleBenchmarkResult singleBenchmarkResult, SubSingleBenchmarkResult oldResult, int subSingleBenchmarkIndex) { SubSingleBenchmarkResult newResult = new SubSingleBenchmarkResult(singleBenchmarkResult, subSingleBenchmarkIndex); newResult.subPureSingleStatisticList = new ArrayList<PureSingleStatistic>(oldResult.subPureSingleStatisticList.size()); for (PureSingleStatistic oldSingleStatistic : oldResult.subPureSingleStatisticList) { newResult.subPureSingleStatisticList.add( oldSingleStatistic.getStatisticType().buildPureSingleStatistic(newResult)); } newResult.initSubSingleStatisticMap(); for (SingleStatistic singleStatistic : newResult.effectiveSingleStatisticMap.values()) { SingleStatistic oldSingleStatistic = oldResult.getSingleStatistic(singleStatistic.getStatisticType()); if (!oldSingleStatistic.getCsvFile().exists()) { if (oldResult.isFailure()) { singleStatistic.initPointList(); logger.debug("Old result ( ) is a failure, skipping merge of it's single statistic ( ).", oldResult, oldSingleStatistic); continue; } else { throw new IllegalStateException("Could not find old result's ( " + oldResult + " ) single statistic's ( " + oldSingleStatistic + " ) CSV file."); } } oldSingleStatistic.unhibernatePointList(); singleStatistic.setPointList(oldSingleStatistic.getPointList()); oldSingleStatistic.hibernatePointList(); } newResult.succeeded = oldResult.succeeded; newResult.score = oldResult.score; newResult.uninitializedVariableCount = oldResult.uninitializedVariableCount; newResult.timeMillisSpent = oldResult.timeMillisSpent; newResult.calculateCount = oldResult.calculateCount; singleBenchmarkResult.getSubSingleBenchmarkResultList().add(newResult); return newResult; }

Target:
protected static SubSingleBenchmarkResult createMerge(SingleBenchmarkResult singleBenchmarkResult, SubSingleBenchmarkResult oldResult, int subSingleBenchmarkIndex) { SubSingleBenchmarkResult newResult = new SubSingleBenchmarkResult(singleBenchmarkResult, subSingleBenchmarkIndex); newResult.pureSubSingleStatisticList = new ArrayList<PureSubSingleStatistic>(oldResult.pureSubSingleStatisticList.size()); for (PureSubSingleStatistic oldSubSingleStatistic : oldResult.pureSubSingleStatisticList) { newResult.pureSubSingleStatisticList.add( oldSubSingleStatistic.getStatisticType().buildPureSubSingleStatistic(newResult)); } newResult.initSubSingleStatisticMap(); for (SubSingleStatistic newSubSingleStatistic : newResult.effectiveSubSingleStatisticMap.values()) { SubSingleStatistic oldSubSingleStatistic = oldResult.getSubSingleStatistic(newSubSingleStatistic.getStatisticType()); if (!oldSubSingleStatistic.getCsvFile().exists()) { if (oldResult.hasAnyFailure()) { newSubSingleStatistic.initPointList(); logger.debug("Old result ({}) is a failure, skipping merge of it's sub single statistic ({}).", oldResult, oldSubSingleStatistic); continue; } else { throw new IllegalStateException("Could not find old result's (" + oldResult + ") sub single statistic's (" + oldSubSingleStatistic + ") CSV file."); } } oldSubSingleStatistic.unhibernatePointList(); newSubSingleStatistic.setPointList(oldSubSingleStatistic.getPointList()); oldSubSingleStatistic.hibernatePointList(); } newResult.succeeded = oldResult.succeeded; newResult.score = oldResult.score; newResult.uninitializedVariableCount = oldResult.uninitializedVariableCount; newResult.timeMillisSpent = oldResult.timeMillisSpent; newResult.calculateCount = oldResult.calculateCount; singleBenchmarkResult.getSubSingleBenchmarkResultList().add(newResult); return newResult; }