From: Roland Haeder Date: Thu, 15 Oct 2015 11:43:09 +0000 (+0200) Subject: renamed number -> userId to make it more clear + updated jar(s) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=900a33d2d0b87fe58441e36e3ecf6cde861130d5;p=jaddressbook-share-lib.git renamed number -> userId to make it more clear + updated jar(s) Signed-off-by:Roland Häder --- diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 6ea5dee..176cc9d 100644 Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ diff --git a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java index a3ff257..ddd1ef7 100644 --- a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java +++ b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java @@ -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