]> git.mxchange.org Git - juser-login-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 18:17:12 +0000 (20:17 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 18:17:12 +0000 (20:17 +0200)
- 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 <roland@mxchange.org>
src/org/mxchange/jusercore/model/user/UserUtils.java

index fc6a3fe306763f01d78f1eaf36af2a64b3d7587b..067e4933b53d0ab500a16c540234e739d63466f2 100644 (file)
@@ -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