Find a bug. EmailAddress.tostring() is incorrect
hi. I have found a bug in EmailAddress class. When we want to transform a EmailAddress object to String, we get an incorrect string. Follow is the tostring code(EmailAddress class line 356):
if (null != this.getName() && this.getName().isEmpty()) { return this.getName() + " <" + addressPart + ">"; } else { return addressPart; }
"if(null != this.getName() && this.getName().isEmpty())" should be "if(null != this.getName() && !this.getName().isEmpty())", forget to add "!"
@icezmb you are right. Are you able to create a PR of it with some jUnits included? thanks in advance.
@serious6 what's the meaning of PR?
@icezmb I meant PR as pull request
if this one is merged, then perhaps we can close the issue?