Invokes System#exit(int) to force the JVM to immediately quit.
(int status)
| 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 | } |
no outgoing calls
no test coverage detected