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(); }