Class ArchResolver

java.lang.Object
org.sonarsource.scanner.lib.internal.util.ArchResolver

public class ArchResolver extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    We don't want to only rely on the system property 'os.arch' to detect the architecture on macOS, since it returns the target architecture of the current JVM, which may be different from the architecture of the OS.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArchResolver

      public ArchResolver()
  • Method Details

    • getCpuArch

      public String getCpuArch()
      We don't want to only rely on the system property 'os.arch' to detect the architecture on macOS, since it returns the target architecture of the current JVM, which may be different from the architecture of the OS. For example, a 32-bit JVM can run on a 64-bit OS.