Przykład
public
class
ClassA {
public void
methodA {
//...
System.exit(0);
}
Rozwiązanie
Zgłoś w zamian wyjątek RuntimeException.
public
class
ClassA {
public void
methodA
throws
RuntimeException {
//...
throw new
RuntimeException();
}