From 961cce294c5c1ad222965501e03c2f6bfe9d6935 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 20 Mar 2013 12:39:18 +0000 Subject: [PATCH] Format lines that are longer than 120 characters git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1458794 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/csv/CSVFormat.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index fa0d59e4..41b2aae8 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -580,25 +580,28 @@ public class CSVFormat implements Serializable { */ private void validate() throws IllegalStateException { if (quoteChar != null && delimiter == quoteChar.charValue()) { - throw new IllegalStateException("The quoteChar character and the delimiter cannot be the same ('" + quoteChar + "')"); + throw new IllegalStateException( + "The quoteChar character and the delimiter cannot be the same ('" + quoteChar + "')"); } if (escape != null && delimiter == escape.charValue()) { - throw new IllegalStateException("The escape character and the delimiter cannot be the same ('" + escape + "')"); + throw new IllegalStateException( + "The escape character and the delimiter cannot be the same ('" + escape + "')"); } if (commentStart != null && delimiter == commentStart.charValue()) { - throw new IllegalStateException("The comment start character and the delimiter cannot be the same ('" + commentStart + - "')"); + throw new IllegalStateException( + "The comment start character and the delimiter cannot be the same ('" + commentStart + "')"); } if (quoteChar != null && quoteChar.equals(commentStart)) { - throw new IllegalStateException("The comment start character and the quoteChar cannot be the same ('" + commentStart + - "')"); + throw new IllegalStateException( + "The comment start character and the quoteChar cannot be the same ('" + commentStart + "')"); } if (escape != null && escape.equals(commentStart)) { - throw new IllegalStateException("The comment start and the escape character cannot be the same ('" + commentStart + "')"); + throw new IllegalStateException( + "The comment start and the escape character cannot be the same ('" + commentStart + "')"); } if (escape == null && quotePolicy == Quote.NONE) {