This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 9be05bae1d0dbbe94320f0a1a89fd620839577a8 Author: Tran Tien Duc <[email protected]> AuthorDate: Fri Nov 29 17:20:46 2019 +0700 JAMES-2992 PreviewDTO toString() --- .../main/java/org/apache/james/jmap/draft/model/PreviewDTO.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/model/PreviewDTO.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/model/PreviewDTO.java index 4984845..2c2eb08 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/model/PreviewDTO.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/model/PreviewDTO.java @@ -26,6 +26,7 @@ import org.apache.james.jmap.api.model.Preview; import com.fasterxml.jackson.annotation.JsonValue; import com.google.common.annotations.VisibleForTesting; +import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; public class PreviewDTO { @@ -73,4 +74,11 @@ public class PreviewDTO { public final int hashCode() { return Objects.hash(value); } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("value", value) + .toString(); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
