From 0b215d6018a6f8879eebc87ed991b19d6dfe38ad Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 29 Sep 2015 10:19:33 +0200 Subject: [PATCH] =?utf8?q?added=20missing=20javadoc=20+=20updated=20jars?= =?utf8?q?=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcore.jar | Bin 32286 -> 32286 bytes lib/jcoreee.jar | Bin 17745 -> 17864 bytes .../model/customer/CustomerUtils.java | 12 +++++++----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/jcore.jar b/lib/jcore.jar index 9bfe65594b36e0dc1f2bf12fefe0583a8c3d2b3b..7884f3df59de98ef74951706b221477a588f99cb 100644 GIT binary patch delta 524 zcmX}oO(?^07zgm*^PiW+Vzo?bl$WV3ipa}Il$Spit^YLQzfw|Ud8z&PVq0->ahjh} z4!gRD!{)|84o*rg4h|f4aZs{SGR^<{JGeZb-&5b``PGvyP`W@Sug6eQ!I+UTpOP}U zBt=Q}9!vWBp#k;NrB_~0?O=umzybAuTj~cz>IHq$2uMoZAS(@myfmtlaT}H`Fm2tH zV1w*SgGQM*MeGv`l99+|H)b7gkQM{CshOa{R_u!%eDO z^TA5#lU36fv(h)Krvh`(FJD!Euxll-UkTq=laL2PZv9sLG&GFvEz|+*nj84FA#kjD zKu#M6ZQ&^p4a?vr>;u-w7zjkB!C7P$NYQzqM(4m~R0WpU63}9Pa351ZZDzWf?0iI8Y;B-=~yhv{T0n!SrdjJ3c delta 524 zcmX}oJ4k|26bJBozFtyNf@p{ZJq(nBqUd1}1zJW@NQy;$LJ)zG^Z-BKLM<&#b_1co zwT7rc8yh0XDTtPaY6w~iBuEH)K>5Ez%lX{{|8p*!%nxOLNbPc#l~*&SVk~b@sV&l# zJ=LFeW1ItmCpl!vkhdcFs6T$R9N1%Au=yUd$i2nuND) zE}_Ys7rBB(7CPJSDv>vJ+eE+8qp4Kkzxvms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NX&>Yp+=CzgbyT;1%iBmL?eFiBgzL9r;DKf^Gr<;+dR+z+5{YE_$6KHn=@#C-7N3h?R@J-6&A^qUEs2H%Tfl4)Ce)!5`syL1H077t}8@1?x3%#gEKe`Y_1Tn;s zz|%-$3K=|yEhu0cUdA|HM-E5vB<8Rar|=ZcViM=@3@%_du46BLKpsD1KYnGbKk&R# zm{!&Nb%49Q%cSNQCxmbjHJp3{o4CD`n_gfFy{JY518hbg33zdXAtFq$1>a(T7QrYd zg6L!@u?8^&Wm!=S!?3Iv!lZQ!!wPqgUw zJdfxro+=NR_K1nmyU3atGqJ^Vu3-J|aQz0m_BD11t6hzLyGvLttUFP&-vP)Ig$}1$ z^tskY^*3g1`Pzoplzw$%3$b0*&-zjiVte1`Rc+<3d@tI(-!ZKk=5qFbf$41>pA^U8 zrbCeZ=wekN))QtWJsd^&9VDoZR=HJL*mCk%eN)WBlad0r2Zwb3orpxtbq5A1w3l z&%$i|hJR1XWZESmUPyb4YXNJv(COEo1uONQw9^V>n=YL3^G`{h*gr9-3$y1#`e3F_ f7sCzW+$4KmY7HEpw*m6p@0`_z%=XI6utfL^m~Jh8 diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java b/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java index ce15d8f..7e660fa 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java +++ b/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java @@ -66,14 +66,16 @@ public class CustomerUtils extends BaseFrameworkSystem { // Default is found boolean isFound = true; - long part1 = 0; - long part2 = 0; + + // Declare variables + long part1; + long part2; // Is the number used? while (isFound) { // Both number parts - part1 = Math.round(Math.random() * 100000); - part2 = Math.round(Math.random() * 1000); + part1 = Math.round(Math.random() * 100_000); + part2 = Math.round(Math.random() * 1_000); // Generate new number customerNumber = String.format("%s-%s", part1, part2); //NOI18N @@ -127,7 +129,7 @@ public class CustomerUtils extends BaseFrameworkSystem { // Is the number used? while (isFound) { // Both number parts - String randString = String.format("%s:%s:%s", Long.toHexString(Math.round(Math.random() * 1000000)), em, customer.getCustomerNumber()); + String randString = String.format("%s:%s:%s", Long.toHexString(Math.round(Math.random() * 1_000_000)), em, customer.getCustomerNumber()); // Generate access key, use SHA512 hashing and BASE64-encoding for strong key generation accessKey = Base64.encodeBase64String(Sha2Crypt.sha512Crypt(randString.getBytes()).getBytes()).substring(0, 100); -- 2.39.5