private static Optional<Integer> getConditions(DbFileSources.Line line) { if (line.hasConditions()) { return Optional.of(line.getConditions()); } else if (line.hasDeprecatedOverallConditions()) { return Optional.of(line.getDeprecatedOverallConditions()); } else if (line.hasDeprecatedUtConditions()) { return Optional.of(line.getDeprecatedUtConditions()); } else if (line.hasDeprecatedItConditions()) { return Optional.of(line.getDeprecatedItConditions()); } return Optional.empty(); }
private static Optional<Integer> getConditions(DbFileSources.Line line) { if (line.hasConditions()) { return Optional.of(line.getConditions()); } else if (line.hasDeprecatedOverallConditions()) { return Optional.of(line.getDeprecatedOverallConditions()); } else if (line.hasDeprecatedUtConditions()) { return Optional.of(line.getDeprecatedUtConditions()); } else if (line.hasDeprecatedItConditions()) { return Optional.of(line.getDeprecatedItConditions()); } return Optional.empty(); }
setLineHits(other.getLineHits()); if (other.hasConditions()) { setConditions(other.getConditions());