]> git.mxchange.org Git - pizzaservice-mailer-ejb.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Wed, 18 May 2016 07:38:38 +0000 (09:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 21 May 2016 11:51:01 +0000 (13:51 +0200)
- removed not needed assertion as this one tests the JPA
- ignored for i18n
- converted CRLF->LF ?

src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java

index c5296216342f840bca228c65369faec078e5f0a6..98ce50304cc1ff93c0b2ba8b06cdfc4e190892b0 100644 (file)
@@ -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;
index c7b85c8b547b413082662af05586bfb204950e2b..4ca1d6e0342ff6303c2975aa97249c7f1c226a60 100644 (file)
@@ -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