From 32e1fb0ce075404e601bc049821534b95e389f9b Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 13 Sep 2013 12:11:09 +0000 Subject: [PATCH] Add output of the header array to toString implementation git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522890 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 a08502de..4e53bb83 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -600,6 +600,10 @@ public class CSVFormat implements Serializable { sb.append(" SurroundingSpaces:ignored"); } sb.append(" SkipHeaderRecord:").append(skipHeaderRecord); + if (header != null) { + sb.append(' '); + sb.append("Header:").append(Arrays.toString(header)); + } return sb.toString(); }