Beispiel
public
class
ClassA {
public void
methodA {
//...
System.exit(0);
}
Lösung
Lösen Sie stattdessen eine Laufzeitausnahmebedingung (RuntimeException) aus.
public
class
ClassA {
public void
methodA
throws
RuntimeException {
//...
throw new
RuntimeException();
}