MCPcopy Index your code
hub / github.com/oshi/oshi / main

Method main

oshi-demo/src/main/java/oshi/demo/DetectVM.java:69–77  ·  view source on GitHub ↗

The main method, executing the #identifyVM method. @param args Arguments, ignored.

(String[] args)

Source from the content-addressed store, hash-verified

67 * Arguments, ignored.
68 */
69 public static void main(String[] args) {
70 String vmString = identifyVM();
71
72 if (vmString.isEmpty()) {
73 System.out.println("You do not appear to be on a Virtual Machine.");
74 } else {
75 System.out.println("You appear to be on a VM: " + vmString);
76 }
77 }
78
79 /**
80 * The function attempts to identify which Virtual Machine (VM) based on common

Callers

nothing calls this directly

Calls 1

identifyVMMethod · 0.95

Tested by

no test coverage detected