You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/12/06 02:34:11 UTC
[james-project] 01/21: JAMES-2992 PreviewDTO toString()
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 <dt...@linagora.com>
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org