JAMES-2456 Deprecate MailAddress::isNullSender
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/2fe4760d Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/2fe4760d Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/2fe4760d Branch: refs/heads/master Commit: 2fe4760da2fd48f5c406170401879ec0582ae533 Parents: 3ae94d0 Author: Benoit Tellier <[email protected]> Authored: Wed Oct 24 11:08:42 2018 +0700 Committer: Benoit Tellier <[email protected]> Committed: Tue Dec 11 14:00:08 2018 +0700 ---------------------------------------------------------------------- core/src/main/java/org/apache/james/core/MailAddress.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/2fe4760d/core/src/main/java/org/apache/james/core/MailAddress.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/james/core/MailAddress.java b/core/src/main/java/org/apache/james/core/MailAddress.java index 78db46c..d31a26d 100644 --- a/core/src/main/java/org/apache/james/core/MailAddress.java +++ b/core/src/main/java/org/apache/james/core/MailAddress.java @@ -374,6 +374,7 @@ public class MailAddress implements java.io.Serializable { * @returns true if the given object is equal to this one, false otherwise */ @Override + @SuppressWarnings("deprecated") public final boolean equals(Object obj) { if (obj == null) { return false; @@ -666,8 +667,9 @@ public class MailAddress implements java.io.Serializable { /** * Return <code>true</code> if the {@link MailAddress} should represent a null sender (<>) * - * @return nullsender + * @Deprecated You should use an Optional<MailAddress> representation of a MailAddress rather than relying on a NULL object */ + @Deprecated public boolean isNullSender() { return false; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
