question: public boolean validateUpdate ( boolean update ) { boolean valid = true ; if ( unlimited . getSelection ( ) ) { if ( update ) { sensorConfig . setStringLength ( 0 ) ; } } else { try { int length = Integer . parseInt ( value . getText ( ) ) ; if ( length <= 0 ) { valid = false ; } else { if ( update ) { sensorConfig . setStringLength ( length ) ; } } } catch ( NumberFormatException e ) { valid = false ; } } return valid ; }
target:  Validates the value and updates if needed.