From 9f2d60937392e588bbcdee26b18cee310a10c973 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 ? --- .../model/register/PizzaUserRegistrationSessionBean.java | 2 +- .../mxchange/jusercore/model/user/PizzaUserSessionBean.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java index 26e63c3..78c37ef 100644 --- a/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java @@ -157,7 +157,7 @@ public class PizzaUserRegistrationSessionBean extends BasePizzaDatabaseBean impl // 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/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index 164a434..ddd1d20 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -236,10 +236,6 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS // 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 @@ -523,7 +519,6 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS 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