]> git.mxchange.org Git - jfinancials-lib.git/commitdiff
renamed number -> userId to make it more clear + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 11:43:09 +0000 (13:43 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 11:43:32 +0000 (13:43 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcoreee.jar
src/org/mxchange/addressbook/validator/user/UserIdValidator.java

index 6ea5dee81a9fef485994cf2c6831b836dd543c7d..176cc9d7eceef50e5e7f37bd45f4b9cd4b310799 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index a3ff257869ad9c995204127790f0d4cbda2137cd..ddd1ef76c1803c8a64aaf6a057a0656a70e1b999 100644 (file)
@@ -76,27 +76,27 @@ public class UserIdValidator extends BaseLongValidator implements Validator {
                super.preValidate(context, component, value, requiredFileds, false);
 
                // Cast value
-               Long number = (Long) value;
+               Long userId = (Long) value;
 
                // Define variable
                Boolean ifUserExists = false;
 
                // Is a map entry there?
-               if (this.cachedStatus.containsKey(number)) {
+               if (this.cachedStatus.containsKey(userId)) {
                        // Get from cache
-                       ifUserExists = this.cachedStatus.get(number);
+                       ifUserExists = this.cachedStatus.get(userId);
                } else {
                        // Get status
-                       ifUserExists = this.userBean.ifUserIdExists(number);
+                       ifUserExists = this.userBean.ifUserIdExists(userId);
 
                        // Add to cache
-                       this.cachedStatus.put(number, ifUserExists);
+                       this.cachedStatus.put(userId, ifUserExists);
                }
 
                // Is the address book id valid?
                if (!ifUserExists) {
                        // Is not valid
-                       throw new ValidatorException(new FacesMessage(MessageFormat.format("No user found with id {0}. Please check your link.", number))); //NOI18N
+                       throw new ValidatorException(new FacesMessage(MessageFormat.format("No user found with id {0}. Please check your link.", userId))); //NOI18N
                }
 
                // Trace message