From: Roland Haeder Date: Thu, 15 Oct 2015 06:55:22 +0000 (+0200) Subject: null first, then variable to test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1cfe90dc75d09ad994cbf5165b59edb54d24eb2f;p=jcore-utils.git null first, then variable to test Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java index 5ddf0ff..bc8bcea 100644 --- a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java +++ b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java @@ -105,7 +105,7 @@ public abstract class BaseBooleanValidator extends BaseObjectValidator implement } // Is facesMessage set? - if (facesMessage != null) { + if (null != facesMessage) { // Abort here throw new ValidatorException(facesMessage); } diff --git a/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java b/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java index e3ed157..e45de73 100644 --- a/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java +++ b/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java @@ -106,7 +106,7 @@ public abstract class BaseLongValidator extends BaseObjectValidator implements V } // Is facesMessage set? - if (facesMessage != null) { + if (null != facesMessage) { // Abort here throw new ValidatorException(facesMessage); }