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 d928589687f3b2ec58deeeeb15a20a86a6eb3b51
Author: Benoit Tellier <[email protected]>
AuthorDate: Fri Dec 6 10:19:48 2019 +0700

    JAMES-2997 MessageFastViewPrecomputedProperties should implement toString
    
    This helps debugging
---
 .../api/projections/MessageFastViewPrecomputedProperties.java    | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/projections/MessageFastViewPrecomputedProperties.java
 
b/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/projections/MessageFastViewPrecomputedProperties.java
index 452f7fd..997ad66 100644
--- 
a/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/projections/MessageFastViewPrecomputedProperties.java
+++ 
b/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/projections/MessageFastViewPrecomputedProperties.java
@@ -23,6 +23,7 @@ import java.util.Objects;
 
 import org.apache.james.jmap.api.model.Preview;
 
+import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
 
 public class MessageFastViewPrecomputedProperties {
@@ -96,4 +97,12 @@ public class MessageFastViewPrecomputedProperties {
     public final int hashCode() {
         return Objects.hash(preview, hasAttachment);
     }
+
+    @Override
+    public String toString() {
+        return MoreObjects.toStringHelper(this)
+            .add("preview", preview)
+            .add("hasAttachment", hasAttachment)
+            .toString();
+    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to