private static Optional<Integer> getLineHits(DbFileSources.Line line) { if (line.hasLineHits()) { return Optional.of(line.getLineHits()); } else if (line.hasDeprecatedOverallLineHits()) { return Optional.of(line.getDeprecatedOverallLineHits()); } else if (line.hasDeprecatedUtLineHits()) { return Optional.of(line.getDeprecatedUtLineHits()); } else if (line.hasDeprecatedItLineHits()) { return Optional.of(line.getDeprecatedItLineHits()); } return Optional.empty(); }
private static Optional<Integer> getLineHits(DbFileSources.Line line) { if (line.hasLineHits()) { return Optional.of(line.getLineHits()); } else if (line.hasDeprecatedOverallLineHits()) { return Optional.of(line.getDeprecatedOverallLineHits()); } else if (line.hasDeprecatedUtLineHits()) { return Optional.of(line.getDeprecatedUtLineHits()); } else if (line.hasDeprecatedItLineHits()) { return Optional.of(line.getDeprecatedItLineHits()); } return Optional.empty(); }
setDeprecatedUtCoveredConditions(other.getDeprecatedUtCoveredConditions()); if (other.hasDeprecatedItLineHits()) { setDeprecatedItLineHits(other.getDeprecatedItLineHits());