From 65ce9e99ea6a1236576c24de9d01e00518d276a5 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 13 Sep 2013 11:39:52 +0000 Subject: [PATCH] Add output of the nullString to toString implementation git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522879 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVFormat.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index cd38a897..09a1bc5c 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -585,6 +585,10 @@ public class CSVFormat implements Serializable { sb.append(' '); sb.append("CommentStart=<").append(commentStart).append('>'); } + if (isNullHandling()) { + sb.append(' '); + sb.append("NullString=<").append(nullString).append('>'); + } if (getIgnoreEmptyLines()) { sb.append(" EmptyLines:ignored"); }