• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 13788808942

11 Mar 2025 01:08PM UTC coverage: 66.998% (-1.6%) from 68.619%
13788808942

Pull #1017

github

web-flow
Merge 2597874a1 into 2cf68279f
Pull Request #1017: #404: enhance logging with custom slf4j bridge

3034 of 4951 branches covered (61.28%)

Branch coverage included in aggregate %.

7831 of 11266 relevant lines covered (69.51%)

3.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
cli/src/main/java/com/devonfw/tools/ide/tool/java/JavaJsonVersion.java
1
package com.devonfw.tools.ide.tool.java;
2

3
import com.devonfw.tools.ide.json.JsonVersionItem;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5

6
/**
7
 * JSON data object for a version of Java. We map only properties that we are interested in and let jackson ignore all others.
8
 *
9
 * @see JavaJsonObject#versions()
10
 */
11
public record JavaJsonVersion(@JsonProperty("openjdk_version") String openjdkVersion, @JsonProperty("semver") String semver) implements JsonVersionItem {
×
12

13
  @Override
14
  public String version() {
15
    String version = openjdkVersion();
×
16
    version = version.replace("+", "_");
×
17
    // replace 1.8.0_ to 8u
18
    if (version.startsWith("1.8.0_")) {
×
19
      version = "8u" + version.substring(6);
×
20
      version = version.replace("-b", "b");
×
21
    }
22
    return version;
×
23
  }
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc