Project: Apache Hadoop YARN Common
FindBugs version: 3.0.0
Code analyzed:
48368 lines of code analyzed, in 764 classes, in 37 packages.
| Metric | Total | Density* |
|---|---|---|
| High Priority Warnings | 0.00 | |
| Medium Priority Warnings | 1 | 0.02 |
| Total Warnings | 1 | 0.02 |
(* Defects per Thousand lines of non-commenting source statements)
| Warning Type | Number |
|---|---|
| Bad practice Warnings | 1 |
| Total | 1 |
Click on a warning row to see full context information.
| Code | Warning |
|---|---|
| Dm | org.apache.hadoop.yarn.event.EventDispatcher$EventProcessor.run() invokes System.exit(...), which shuts down the entire virtual machine |
Invoking System.exit shuts down the entire Java virtual machine. This should only been done when it is appropriate. Such calls make it hard or impossible for your code to be invoked by other code. Consider throwing a RuntimeException instead.