MCPcopy Create free account
hub / github.com/crate/crate / main

Method main

server/src/main/java/org/elasticsearch/Version.java:589–599  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

587 }
588
589 @SuppressForbidden(reason = "System.out.*")
590 public static void main(String[] args) {
591 final String versionOutput = String.format(
592 Locale.ROOT,
593 "Version: %s, Build: %s/%s, JVM: %s",
594 Version.displayVersion(Version.CURRENT, Version.CURRENT.isSnapshot()),
595 Build.CURRENT.hashShort(),
596 Build.CURRENT.timestamp(),
597 JvmInfo.jvmInfo().version());
598 System.out.println(versionOutput);
599 }
600
601 @Override
602 public String toString() {

Callers

nothing calls this directly

Calls 8

displayVersionMethod · 0.95
jvmInfoMethod · 0.95
isSnapshotMethod · 0.80
hashShortMethod · 0.80
formatMethod · 0.65
timestampMethod · 0.45
versionMethod · 0.45
printlnMethod · 0.45

Tested by

no test coverage detected