diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-24 14:41:56 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-24 15:02:12 +0300 |
commit | dda62594f56e12590c5a3517585ad529e2df5c56 (patch) | |
tree | d984914b85e996b379ca09ff56d1e59b621712bd /server/src/com/vaadin/data/Validatable.java | |
parent | 8c11021ab84fec373f0c27e3a9b87b4d7e5b049e (diff) | |
download | vaadin-framework-dda62594f56e12590c5a3517585ad529e2df5c56.tar.gz vaadin-framework-dda62594f56e12590c5a3517585ad529e2df5c56.zip |
Return an empty collection instead of null from Validatable.getValidators() (#9723)
Diffstat (limited to 'server/src/com/vaadin/data/Validatable.java')
-rw-r--r-- | server/src/com/vaadin/data/Validatable.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/com/vaadin/data/Validatable.java b/server/src/com/vaadin/data/Validatable.java index a454e6f821..724a688efb 100644 --- a/server/src/com/vaadin/data/Validatable.java +++ b/server/src/com/vaadin/data/Validatable.java @@ -59,11 +59,12 @@ public interface Validatable extends Serializable { /** * <p> - * Lists all validators currently registered for the object. If no - * validators are registered, returns <code>null</code>. + * Returns a collection of all validators currently registered for the + * object. The collection may be immutable and it may not be safe to call + * <code>removeValidator</code> for this object while iterating over it. * </p> * - * @return collection of validators or <code>null</code> + * @return A collection of validators */ public Collection<Validator> getValidators(); |