From 900a33d2d0b87fe58441e36e3ecf6cde861130d5 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 Oct 2015 13:43:09 +0200 Subject: [PATCH] =?utf8?q?renamed=20number=20->=20userId=20to=20make=20it?= =?utf8?q?=20more=20clear=20+=20updated=20jar(s)=20Signed-off-by:Roland=20?= =?utf8?q?H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcoreee.jar | Bin 18716 -> 18794 bytes .../validator/user/UserIdValidator.java | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 6ea5dee81a9fef485994cf2c6831b836dd543c7d..176cc9d7eceef50e5e7f37bd45f4b9cd4b310799 100644 GIT binary patch delta 1799 zcmZuyZA?>F7=BLM+uPpWwg?ox%12c|zA7II!WB^pEmaW^7_-i=0u|BHVku5#tkLYx zHj_n;$%1oZQ4ER6<{S~+oNi{>kL|~TG1>3=Z`qPf{4@8oARm<6^g5sSb(>DN?&gLy@g zV=mI(l2iZQqg)%1YvWV-t^3|qkcBp}v@7VqZUquLWppV}(JkXO3wmU{u3!&>GWN=N zLxBzZEZ8p$4#+rYMH&t%w1i~zD#$>ejD8tm8Hf3{Eyc4(3M{P95I)JUy7g%2M5sIx ziVl>wjSlsO>zW#z@$m7{!FafTS9oM3G!SO6 zcO^o7$99E=yF%SGRlcEky)ZhwE6u_**w2UOXeU~MLr71P{kmQsyK!S zL)vpHU5WT$bU?)rq6~S@_5Vwep~gQLj`X|7D#qP?p=dOgaQBAY!=d;{xZj8TKsw4t!<`3&a{ATIe zbVrx3$Je>NJ9yC7+1XBKI?f%XGkkj0{-leJn_)RUE3pDv3IPLF(ZeWZF0FY0$_W{v zR5A~Cg9HQIw3<^&H&&CZE*W4A*3uiXK>=Bjv*9k;rIBhyNoko!Gr6RB7|P~g)Xhnz z%S^XuCf%x8@75^B8k@`JQZC~s&FZpM>8f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SBi0#-bAaEat>kjWa$IuQ61Mo4R~)&tVnEYpX?K;%+fi91;&Q?y*zi zy0$77N^(UssaV|4^yH;bbs5s=--&eWAj|-ugGN7P0vpLJ;r69_b`c*>BfySql4?vh z&?tvSOxA|xWYOeb$uE(pu;{JZAzrsxGFXOYN=qpBs#?6Jt|M-Vu{6Un++x+{O#C*c zI`2YVMsc!P+^{)(E6i(VUW+7`pgO;R>NT&zM2f*{k^Xg>IcD={=5<&uqa-=ea2tG3 zubKM><1|&=vSk#sNzVq&auBOe7Y)3S>wL=h|~WkwX!TooD2ffDSYCzHjp;iNPa*qIFr zWuzv^gL`(UQgczREXI|?LkBFm3d&s{)2b*;TuiH`N*G|JZP(Hw@knL0RGm6-st;)6 zrY#Dpax`!>ax`%?bNCpCpHso4%IH-+Mh7wFPmsnD;0PM(|3Kpw#WnuVM7n3K6h4l& zXr;}CNY_!}CkYkeCMd@fFumCF)>PL|akA??u1Jwx=&H5BKp;~5wbTklw?Ee7-t@a9 z`6ZDAPy9X!%`F`gF0^z?_^u@);X%MALV;MDYYN)LYM|;Vdq_f4aIXXr9FXuRI3%H` zby&iut>Y4MLg)V7`)-5|N=ss!P4{t`$Z5!-{+c2pE=`Po i>r7kLzju{RLjFyZ{q}e5+(tb)`b2+wQv8Nb(tiQkib0tG diff --git a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java index a3ff2578..ddd1ef76 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 -- 2.39.5