From e05d5c54e7977cd3d1d97e350ed6f7ebe7c9e14e 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/JobsUserRegistrationSessionBean.java | 2 +- .../mxchange/jusercore/model/user/JobsUserSessionBean.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java index b2014e8..13d180a 100644 --- a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java @@ -157,7 +157,7 @@ public class JobsUserRegistrationSessionBean extends BaseJobsDatabaseBean implem // 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/JobsUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java index cc483f7..20e438c 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java @@ -233,10 +233,6 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes // 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 JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes 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