This is an automated email from the git hooks/post-receive script. New commit to branch feature/2246 in repository echobase. See https://gitlab.nuiton.org/codelutin/echobase.git commit 91a2107e04ad9955ce6cde17e8efa332d36fa8c9 Author: Tony CHEMIT <chemit@codelutin.com> Date: Tue May 10 08:54:44 2016 +0200 Ajout toString --- .../main/java/fr/ifremer/echobase/io/InputFile.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/echobase-domain/src/main/java/fr/ifremer/echobase/io/InputFile.java b/echobase-domain/src/main/java/fr/ifremer/echobase/io/InputFile.java index 4ec8668..c762d5c 100644 --- a/echobase-domain/src/main/java/fr/ifremer/echobase/io/InputFile.java +++ b/echobase-domain/src/main/java/fr/ifremer/echobase/io/InputFile.java @@ -20,6 +20,8 @@ */ package fr.ifremer.echobase.io; +import com.google.common.base.MoreObjects; + import java.io.File; import java.io.Serializable; @@ -88,4 +90,22 @@ public class InputFile implements Serializable { public boolean hasFile() { return file != null; } + + @Override + public String toString() { + MoreObjects.ToStringHelper toStringHelper = MoreObjects.toStringHelper(this); + if (fileName != null) { + toStringHelper.add("fileName", fileName); + } + if (file != null) { + toStringHelper.add("file", file); + } + if (contentType != null) { + toStringHelper.add("contentType", contentType); + } + if (label != null) { + toStringHelper.add("label", label); + } + return toStringHelper.toString(); + } } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.