]> git.mxchange.org Git - pizzaservice-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>
Fri, 20 May 2016 21:17:18 +0000 (23:17 +0200)
- removed not needed assertion as this one tests the JPA
- ignored for i18n
- converted CRLF->LF ?

src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java

index 26e63c349fd6a21f6d3e8cd79d2db8d5b48dbbf4..78c37ef90171e346c6104b0cfa62a3a6c5be4614 100644 (file)
@@ -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;
index 164a434dd08dba06c80a6d2aaf5e0de23fd5c559..ddd1d20d87246cfb16a6b4645282b0b50e7b81fb 100644 (file)
@@ -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