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=5c813b12a99677caa4b276e9b9adf9b963420f67;p=jfinancials-mailer-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/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