src/main/java/com/xdavide9/calculatorfx/CalculatorFXController.java
private int status(String onLabel) {
        if (onLabel.equals("err")) {
            log.warn("Resetting all fields to default");
            setDefaults();
            return -1;
        }
        return 0;
    }
/**
     * Checks whether the application needs to be reset or not.
     */
Checks whether the application needs to be reset or not.
Checks whether the application needs to be reset or not .
private int status(String onLabel) {
        if (onLabel.equals("err")) {
            log.warn("Resetting all fields to default");
            setDefaults();
            return -1;
        }
        return 0;
    }
private int status ( String onLabel ) { if ( onLabel . equals ( "err" ) ) { log . warn ( "Resetting all fields to default" ) ; setDefaults ( ) ; return - 1 ; } return 0 ; }
Checks whether the application needs to be reset or not.
Checks whether the application needs to be reset or not .