From b1d7c45a6c44cd3afcbe2095e97477224d848fd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 23 Jun 2017 20:17:12 +0200 Subject: [PATCH] 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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/org/mxchange/jusercore/model/user/UserUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5