* @return New user instance
*/
private User createUserInstance () {
- // Init variable for password
- String password = null;
-
- // Init instance
+ // Init variable for password and contact
+ final String password;
final Contact userContact;
// Is a contact instance in helper set?
password = this.getUserPassword();
}
- // The password should not be null and at least 5 characters long
- assert (password != null) : "password is null"; //NOI18N
- assert (password.length() >= FinancialsUserWebRequestController.MINIMUM_PASSWORD_LENGTH) : "Password is not long enough."; //NOI18N
-
// Is contact instance given? Else create one
if (this.getContact() instanceof Contact) {
// Then use it for contact linking