Subversion Repositories javautils

Compare Revisions

Regard whitespace Rev 10 → Rev 11

/ViaThinkSoft Java Utils/src/de/viathinksoft/utils/mail/EMailAddress.java
190,7 → 190,7
* @return The email address with punycoded domain name and TLD.
*/
public String getMailAddressPunycodedDomain() {
if (this.domainPartPunycode.equals("")) {
if (this.domainPartPunycode.isEmpty()) {
return this.localPart;
} else {
return this.localPart + "@" + this.domainPartPunycode;
203,7 → 203,7
* @return The email address with internationalized domain name and TLD.
*/
public String getMailAddressUnicode() {
if (this.domainPartUnicode.equals("")) {
if (this.domainPartUnicode.isEmpty()) {
return this.localPart;
} else {
return this.localPart + "@" + this.domainPartUnicode;
/ViaThinkSoft Java Utils/src/com/dominicsayers/isemail/IsEMail.java
320,7 → 320,7
// end of the
// local part, or two periods together. Either way it's not
// allowed.
if (element.equals("")) {
if (element.isEmpty()) {
// Dots in wrong place
return EMailSyntaxDiagnosis.ISEMAIL_EMPTYELEMENT;
}
443,7 → 443,7
// Check for unmatched characters
if (matchesIP6.length > 1) {
for (String s : matchesIP6[1]) {
if ((s != null) && (!s.equals(""))) {
if ((s != null) && (!s.isEmpty())) {
return EMailSyntaxDiagnosis.ISEMAIL_IPV6BADCHAR;
}
}