]> git.mxchange.org Git - jjobs-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>
Thu, 26 May 2016 13:15:01 +0000 (15:15 +0200)
- removed not needed assertion as this one tests the JPA
- ignored for i18n
- converted CRLF->LF ?

src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java

index b2014e8812a7e575a6210410aa7863289ff6dae3..13d180ac240c125964238391e6d9439dfc533eac 100644 (file)
@@ -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;
index cc483f74ced2b680507dbff2f416de6d65eb7852..20e438c7fed0633254794713be13d4ad888ffc45 100644 (file)
@@ -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