Subversion Repository Public Repository

litesoft

Diff Revisions 50 vs 802 for /trunk/Java/core/Anywhere/src/org/litesoft/core/util/EmailAddress.java

Diff revisions: vs.
  @@ -2,6 +2,7 @@
2 2 package org.litesoft.core.util;
3 3
4 4 import org.litesoft.core.simpletypes.nonpublic.*;
5 + import org.litesoft.core.typeutils.*;
5 6
6 7 /**
7 8 * Email address as specified by <a href="http://www.ietf.org/rfc/rfc2822.txt">RFC 2822, "Internet Message Format"</a>
  @@ -16,15 +17,15 @@
16 17 public EmailAddress( String pLocalPart, String pDomain )
17 18 throws IllegalArgumentException
18 19 {
19 - mLocalPart = UtilsCommon.deNull( pLocalPart ).trim();
20 - mDomain = UtilsCommon.deNull( pDomain ).trim().toLowerCase();
20 + mLocalPart = Strings.deNull( pLocalPart ).trim();
21 + mDomain = Strings.deNull( pDomain ).trim().toLowerCase();
21 22 validate();
22 23 }
23 24
24 25 public EmailAddress( String pAddress )
25 26 throws IllegalArgumentException
26 27 {
27 - int zAt = (pAddress = UtilsCommon.deNull( pAddress )).indexOf( '@' );
28 + int zAt = (pAddress = Strings.deNull( pAddress )).indexOf( '@' );
28 29 if ( zAt == -1 )
29 30 {
30 31 throw new IllegalArgumentException( "No Local-part / Domain separator ('@')" );