]> git.mxchange.org Git - jcore-utils.git/commitdiff
null first, then variable to test
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 06:55:22 +0000 (08:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 06:55:22 +0000 (08:55 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java
src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java

index 5ddf0fff58c7b48664b407b84bfefc933b57af3c..bc8bcea7373ff1369804ab14b636e80e20469b39 100644 (file)
@@ -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);
                }
index e3ed1570121ccb579f4286e9a2d65415f67ee1dd..e45de732153720df507a7e997dc7cc7eaefb75f6 100644 (file)
@@ -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);
                }