From: Roland Häder Date: Tue, 21 Jun 2016 09:20:42 +0000 (+0200) Subject: added some empty lines + added a bit documentation of parameter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d292e1bd659fe174eb8a61347dee978d5f415ba9;p=jcoreee.git added some empty lines + added a bit documentation of parameter --- diff --git a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java index 3bf63fe..06c2747 100644 --- a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java +++ b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java @@ -43,13 +43,14 @@ public abstract class BaseObjectValidator implements Validator, Serializable { * Needs to be implemented as the Validator interface needs to be * implemented. *

- * @param context - * @param component - * @param value

+ * @param context FacesContext instance + * @param component UIComponent instance + * @param value Value to check + *

* @throws ValidatorException */ @Override - abstract public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException; + public abstract void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException; /** * The method pre-validates the given value. It makes sure that the @@ -57,11 +58,11 @@ public abstract class BaseObjectValidator implements Validator, Serializable { * component's id has been found, it stops iteration on requiredFields * (which saves execution time). *

- * @param context FacesContext instance - * @param component UIComponent instance - * @param value Value to check + * @param context FacesContext instance + * @param component UIComponent instance + * @param value Value to check * @param requiredFields Array of required field names (ending with) - * @param allowNull Wether null or empty values are allowed + * @param allowNull Wether null or empty values are allowed *

* @throws ValidatorException If something more horrible went wrong */ diff --git a/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java b/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java index 60676a6..d10a6eb 100644 --- a/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java +++ b/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java @@ -109,4 +109,5 @@ public abstract class BaseLongValidator extends BaseObjectValidator implements V throw new ValidatorException(facesMessage); } } + } diff --git a/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java b/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java index ccffa4a..10e7e8e 100644 --- a/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java +++ b/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java @@ -52,4 +52,5 @@ public class ItemAmountValidator extends BaseLongValidator implements Validator // Trace message //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N } + } diff --git a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java index 9948a57..3150431 100644 --- a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java @@ -74,6 +74,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { // Debug message //this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N + // Is it not null? if (null != facesMessage) { throw new ValidatorException(facesMessage); diff --git a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java index fa716c7..4a202b5 100644 --- a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java @@ -52,4 +52,5 @@ public class NameValidator extends BaseStringValidator implements Validator { // Trace message //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N } + }