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

devonfw / IDEasy / 13858963404

14 Mar 2025 02:38PM UTC coverage: 67.657% (-1.0%) from 68.619%
13858963404

push

github

web-flow
#1024: Move urls into url-updater module (#1025)

Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>

3036 of 4915 branches covered (61.77%)

Branch coverage included in aggregate %.

7825 of 11138 relevant lines covered (70.25%)

3.07 hits per line

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

50.0
cli/src/main/java/com/devonfw/tools/ide/os/SystemArchitecture.java
1
package com.devonfw.tools.ide.os;
2

3
/**
4
 * Enum with the supported architectures.
5
 */
6
public enum SystemArchitecture {
3✔
7
  /** x86 architecture (intel/AMD) with 64-Bit (a.k.a. "x86_64" or "amd64"). */
8
  X64("x64"),
7✔
9

10
  /** ARM architecture with 64-Bit (a.k.a. "aarch64") including Apple M1/2 CPU. */
11
  ARM64("arm64");
7✔
12

13
  private final String title;
14

15
  private SystemArchitecture(String title) {
4✔
16

17
    this.title = title;
3✔
18
  }
1✔
19

20
  @Override
21
  public String toString() {
22

23
    return this.title;
3✔
24
  }
25

26
  /**
27
   * @param title the {@link #toString() string representation} of the requested {@link SystemArchitecture}.
28
   * @return the according {@link SystemArchitecture} or {@code null} if none matches.
29
   */
30
  public static SystemArchitecture of(String title) {
31

32
    for (SystemArchitecture os : values()) {
×
33
      if (os.toString().equals(title)) {
×
34
        return os;
×
35
      }
36
    }
37
    return null;
×
38
  }
39

40
  /**
41
   * @param architecture the {@link SystemArchitecture}.
42
   * @return the given {@link SystemArchitecture} or {@link #X64} if {@code null} was given.
43
   */
44
  public static SystemArchitecture orDefault(SystemArchitecture architecture) {
45

46
    if (architecture == null) {
2!
47
      return X64;
×
48
    }
49
    return architecture;
2✔
50
  }
51
}
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

© 2026 Coveralls, Inc