From d593ff66c32f3a11d52a672bd76734588aeaf87c Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 5 Sep 2015 15:14:02 +0200 Subject: [PATCH] =?utf8?q?Declared=20what=20the=20method=20is=20actually?= =?utf8?q?=20doing.=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/org/mxchange/jcoreee/validator/BaseObjectValidator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java index ca021aa..d1eb115 100644 --- a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java +++ b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java @@ -61,7 +61,9 @@ public abstract class BaseObjectValidator extends BaseFrameworkSystem implements } /** - * Pre-validation of value, e.g. not null + * The method pre-validates the given value. It makes sure that the component's id is found in + * requiredFields and is not null. Once the component's id has been found, it stops iteration on + * requiredFields (which saves execution time). * * @param context FacesContext instance * @param component UIComponent instance @@ -86,6 +88,7 @@ public abstract class BaseObjectValidator extends BaseFrameworkSystem implements // Default is no field is valid boolean isValidField = false; + // Check component's id against required fields and find a match for (final String field : requiredFields) { // Get logger this.getLogger().debug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N -- 2.39.5