From 3bc5e8dfc464bf2342d58d83d606cd35563c87bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 20 Apr 2017 21:11:53 +0200 Subject: [PATCH] Opps, to much renamed ... ;-) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../mxchange/jusercore/model/user/UserUtils.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/org/mxchange/jusercore/model/user/UserUtils.java b/src/org/mxchange/jusercore/model/user/UserUtils.java index ce04147..3f7968e 100644 --- a/src/org/mxchange/jusercore/model/user/UserUtils.java +++ b/src/org/mxchange/jusercore/model/user/UserUtils.java @@ -456,26 +456,26 @@ public class UserUtils implements Serializable { /** * Checks if direct password the updatedUser's password *

- * @param clear-textPassword Clear-text (direct) password + * @param clearTextPassword Clear-text (direct) password * @param updatedUser Updated user instance from database *

* @return Whether the password matches */ - public static boolean ifPasswordMatches (final String clear-textPassword, final User updatedUser) { + public static boolean ifPasswordMatches (final String clearTextPassword, final User updatedUser) { // Validate parameters - if (null == clear-textPassword) { + if (null == clearTextPassword) { // Throw NPE - throw new NullPointerException("clear-textPassword is null"); //NOI18N - } else if (clear-textPassword.isEmpty()) { + throw new NullPointerException("clearTextPassword is null"); //NOI18N + } else if (clearTextPassword.isEmpty()) { // NPE for user in container - throw new NullPointerException("clear-textPassword is empty."); //NOI18N + throw new NullPointerException("clearTextPassword is empty."); //NOI18N } else if (null == updatedUser) { // And again NPE ... throw new NullPointerException("updatedUser is null"); //NOI18N } // First encrypt password - String encryptedPassword = Crypt.crypt(clear-textPassword, updatedUser.getUserEncryptedPassword()); + String encryptedPassword = Crypt.crypt(clearTextPassword, updatedUser.getUserEncryptedPassword()); // Is it matching? return encryptedPassword.equals(updatedUser.getUserEncryptedPassword()); -- 2.39.5