From: Roland Häder Date: Wed, 18 May 2016 07:38:38 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e05d5c54e7977cd3d1d97e350ed6f7ebe7c9e14e;p=jjobs-ejb.git Continued a bit: - removed not needed assertion as this one tests the JPA - ignored for i18n - converted CRLF->LF ? --- 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