Change-Id: Ibc0173f96a1000e709bd7ee90cccd500fad1a223
// Repaint is needed even when the client thinks that it knows the
// new state if validity of the component may change
if (repaintIsNotNeeded
- && (isRequired() || getValidators() != null || getConverter() != null)) {
+ && (isRequired() || hasValidators() || getConverter() != null)) {
repaintIsNotNeeded = false;
}
}
}
+ private boolean hasValidators() {
+ return validators != null && !validators.isEmpty();
+ }
+
/**
* Removes the validator from the field.
*