MCPcopy Create free account
hub / github.com/apache/solr / exit

Method exit

solr/core/src/java/org/apache/solr/cli/ToolRuntime.java:44–51  ·  view source on GitHub ↗

Invokes System#exit(int) to force the JVM to immediately quit.

(int status)

Source from the content-addressed store, hash-verified

42
43 /** Invokes {@link System#exit(int)} to force the JVM to immediately quit. */
44 @SuppressForbidden(reason = "That's the only method in CLI code where we allow to exit the JVM")
45 public void exit(int status) {
46 try {
47 System.exit(status);
48 } catch (SecurityException secExc) {
49 if (status != 0) throw new RuntimeException("SolrCLI failed to exit with status " + status);
50 }
51 }
52}

Callers 15

print_usageFunction · 0.45
collect_filesFunction · 0.45
mainFunction · 0.45
_find_git_rootMethod · 0.45
mainFunction · 0.45
releaseWizard.pyFile · 0.45
get_editorFunction · 0.45
check_prerequisitesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected