// Default key is "unused"
String messageKey = "CONTACT_IS_UNUSED"; //NOI18N
- // Check user contact
- boolean isUserContact = this.userController.isContactFound(contact);
-
// Check user first
- if (isUserContact) {
+ if (this.userController.isContactFound(contact)) {
// Only user
messageKey = "CONTACT_IS_USER"; //NOI18N
}
}
// Get contact
- Contact userContact = this.getUser().getUserContact();
+ final Contact userContact = this.getUser().getUserContact();
// Set contact here, too. This avoids parameters that cannot auto-complete in IDEs.
this.setContact(userContact);