From 5c813b12a99677caa4b276e9b9adf9b963420f67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 18 May 2016 09:38:38 +0200 Subject: [PATCH] Continued a bit: - removed not needed assertion as this one tests the JPA - ignored for i18n - converted CRLF->LF ? --- .../register/AddressbookUserRegistrationSessionBean.java | 2 +- .../jusercore/model/user/AddressbookUserSessionBean.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java index c529621..98ce503 100644 --- a/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java @@ -157,7 +157,7 @@ public class AddressbookUserRegistrationSessionBean extends BaseDatabaseBean imp // Create email // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("registerUser: addedUser={0},addedUser.userIdd={1} - EXIT!", addedUser, addedUser.getUserId())); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("registerUser: addedUser={0},addedUser.userId={1} - EXIT!", addedUser, addedUser.getUserId())); //NOI18N // Return it return addedUser; diff --git a/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java index c7b85c8..4ca1d6e 100644 --- a/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java @@ -233,10 +233,6 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl // Fetch the result, it should be there by now User user = (User) query.getSingleResult(); - // Should be there - // @TODO This assertion tests the JPA - assert (user instanceof User) : "user is null"; //NOI18N - // Trace message this.getLoggerBeanLocal().logTrace(MessageFormat.format("findUserById: user={0} - EXIT!", user)); //NOI18N @@ -520,7 +516,6 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl this.getLoggerBeanLocal().logTrace(MessageFormat.format("linkUser: user={0} - CALLED!", user)); //NOI18N // user should not be null - // @TODO Add check for email address if (null == user) { // Abort here throw new NullPointerException("user is null"); //NOI18N -- 2.39.5