private FormValidation validate ( final String highThreshold , final String normalThreshold , final String message ) { try { int high = Integer . parseInt ( highThreshold ) ; int normal = Integer . parseInt ( normalThreshold ) ; if ( isValid ( normal , high ) ) { return FormValidation . ok ( ) ; } } catch ( NumberFormatException exception ) { // ignore and return failure } return FormValidation . error ( message ) ; }
Performs on - the - fly validation on thresholds for high and normal warnings .