// Is all data set?
if (this.getUserName() == null) {
// Throw NPE
- throw new NullPointerException("recruiterName is null"); //NOI18N
+ throw new NullPointerException("userName is null"); //NOI18N
} else if (this.getUserName().isEmpty()) {
// Is empty
- throw new IllegalStateException("recruiterName is empty."); //NOI18N
+ throw new IllegalStateException("userName is empty."); //NOI18N
}
- // Create new recruiter instance
- User recruiter = new LoginUser();
+ // Create new user instance
+ User user = new LoginUser();
// Update all data ...
- recruiter.setUserName(this.getUserName());
+ user.setUserName(this.getUserName());
// Trace message
- //* NOISY-DEBUG */ System.out.println(MessageFormat.format("{0}.createUserLogin: recruiter={1} - EXIT!", this.getClass().getSimpleName(), recruiter));
+ //* NOISY-DEBUG */ System.out.println(MessageFormat.format("{0}.createUserLogin: user={1} - EXIT!", this.getClass().getSimpleName(), user));
// Return the new instance
- return recruiter;
+ return user;
}
@Override