Skip to content

Commit

Permalink
Bump version of coverage-model to 0.53.0
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 17, 2025
1 parent 2215624 commit f393c05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<gitHubRepo>jenkinsci/coverage-plugin</gitHubRepo>

<!-- Library Dependencies Versions -->
<coverage-model.version>0.52.0-rc933.2f540a_5a_3cee</coverage-model.version>
<coverage-model.version>0.53.0</coverage-model.version>
<jsoup.version>1.18.1</jsoup.version>

<!-- Jenkins Plug-in Dependencies Versions -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public int getNcss() {
*/
protected DetailedCell<?> createColoredCoverageColumn(final Coverage coverage) {
if (coverage.isSet()) {
double percentage = coverage.getCoveredPercentage().toDouble();
double percentage = coverage.asRounded();
DisplayColors colors = CoverageLevel.getDisplayColorsOfCoverageLevel(percentage, colorProvider);
String cell = div()
.withClasses(COVERAGE_COLUMN_OUTER).with(
Expand Down Expand Up @@ -353,7 +353,7 @@ protected DetailedCell<?> createColoredCoverageColumn(final Coverage coverage) {
* @return the created {@link DetailedCell}
*/
protected DetailedCell<?> createColoredCoverageDeltaColumn(final Metric metric, final Value delta) {
double percentage = delta.asDouble();
double percentage = delta.asRounded();
DisplayColors colors = CoverageChangeTendency.getDisplayColorsForTendency(percentage, colorProvider);
String cell = div().withClasses(COVERAGE_COLUMN_OUTER).with(
div().withClasses(COVERAGE_COLUMN_INNER)
Expand Down

0 comments on commit f393c05

Please sign in to comment.