]> git.mxchange.org Git - addressbook-war.git/blobdiff - src/java/org/mxchange/addressbook/beans/helper/AddressbookWebRequestHelperBean.java
Please cherry-pick:
[addressbook-war.git] / src / java / org / mxchange / addressbook / beans / helper / AddressbookWebRequestHelperBean.java
index 72572c8c14bf756e9f2b3ee648882ddb4f6f951d..dc337716d21ed1eebf149ca70326efc755967265 100644 (file)
@@ -200,11 +200,8 @@ public class AddressbookWebRequestHelperBean implements AddressbookWebRequestHel
                // 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
                }
@@ -453,7 +450,7 @@ public class AddressbookWebRequestHelperBean implements AddressbookWebRequestHel
                }
 
                // 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);