if (isRequired()) { super.performValidation(); }  if (isValid()) { String numberText = getComponent().getValue().trim();  try { Integer.parseInt(numberText, getBase()); setValid(true); } catch (NumberFormatException e) { setValid(false); } } }
super.performValidation();  if (isValid()) { String numberText = getComponent().getValue().trim();  try { Integer.parseInt(numberText, getBase()); setValid(true); } catch (NumberFormatException e) { setValid(false); } } else { setValid(!isRequired()); } }
    public void performValidation() {        if (isRequired()) {            super.performValidation();        }                if (isValid()) {            String numberText = getComponent().getValue().trim();                        try {                Integer.parseInt(numberText, getBase());                setValid(true);            } catch (NumberFormatException e) {                setValid(false);            }        }    }