From: Roland Häder Date: Fri, 23 Jun 2017 18:17:12 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b1d7c45a6c44cd3afcbe2095e97477224d848fd2;p=juser-login-core.git Continued: - use now ContactUtils as the old method in POJO is now gone and was no good idea anyway. Keep your POJOs/POJIs as simple as possible, no big/"complex" methods there. Better use separate utils classes. Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jusercore/model/user/UserUtils.java b/src/org/mxchange/jusercore/model/user/UserUtils.java index fc6a3fe..067e493 100644 --- a/src/org/mxchange/jusercore/model/user/UserUtils.java +++ b/src/org/mxchange/jusercore/model/user/UserUtils.java @@ -26,6 +26,7 @@ import java.util.regex.Pattern; import org.apache.commons.codec.digest.Crypt; import org.apache.commons.codec.digest.DigestUtils; import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jcontacts.contact.ContactUtils; import org.mxchange.jusercore.container.login.LoginContainer; /** @@ -195,7 +196,7 @@ public class UserUtils implements Serializable { // Is contact set? if (sourceUser.getUserContact() instanceof Contact) { // Copy also contact data - targetUser.getUserContact().copyAll(sourceUser.getUserContact()); + ContactUtils.copyAll(sourceUser.getUserContact(), targetUser.getUserContact()); } // Copy other data