From: Roland Häder <roland@mxchange.org>
Date: Fri, 26 Aug 2016 15:08:26 +0000 (+0200)
Subject: Please cherry-pick:
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97f462187c411581939f1d3917db15e35d1b7525;p=jjobs-mailer-ejb.git

Please cherry-pick:
- renamed variables as they hold a JPA-managed entity
---

diff --git a/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java
index e3f6cf6..bdd2039 100644
--- a/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java
+++ b/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java
@@ -264,9 +264,9 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
 	}
 
 	@Override
-	public Contact updateContactData (final Contact contact, final boolean isCellphoneUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked) {
+	public Contact updateContactData (final Contact contact, final boolean isMobileUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked) {
 		// Log trace message
-		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateContactData: contact={1},isCellphoneUnlinked={2},isLandlineUnlinked={3},isFaxUnlinked={4} - CALLED!", this.getClass().getSimpleName(), contact, isCellphoneUnlinked, isLandlineUnlinked, isFaxUnlinked)); //NOI18N
+		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateContactData: contact={1},isMobileUnlinked={2},isLandlineUnlinked={3},isFaxUnlinked={4} - CALLED!", this.getClass().getSimpleName(), contact, isMobileUnlinked, isLandlineUnlinked, isFaxUnlinked)); //NOI18N
 
 		// The contact instance must be valid
 		if (null == contact) {
@@ -308,18 +308,18 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
 		}
 
 		// Is cell phone/land-line/fax number unlinked?
-		boolean isCellphoneUnlinked = (contact.getContactMobileNumber() == null);
+		boolean isMobileUnlinked = (contact.getContactMobileNumber() == null);
 		boolean isLandLineUnlinked = (contact.getContactLandLineNumber() == null);
 		boolean isFaxUnlinked = (contact.getContactFaxNumber() == null);
 
 		// Call other Method
-		Contact detachedContact = this.updateContactData(contact, isCellphoneUnlinked, isLandLineUnlinked, isFaxUnlinked);
+		Contact managedContact = this.updateContactData(contact, isMobileUnlinked, isLandLineUnlinked, isFaxUnlinked);
 
 		// Trace message
-		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateContactData: detachedContact={1} - EXIT!", this.getClass().getSimpleName(), detachedContact)); //NOI18N
+		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateContactData: managedContact={1} - EXIT!", this.getClass().getSimpleName(), managedContact)); //NOI18N
 
 		// Return it
-		return detachedContact;
+		return managedContact;
 	}
 
 }