From 6f94c8a3daa2c967542659f7026eda4a3aef6aaf Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 15 Oct 2012 16:02:32 +0000 Subject: [PATCH] Explicit unboxing git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398354 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVFormat.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index ec637003..693aa503 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -192,15 +192,15 @@ public class CSVFormat implements Serializable { * @throws IllegalStateException */ void validate() throws IllegalStateException { - if (quoteChar != null && delimiter == quoteChar) { + if (quoteChar != null && delimiter == quoteChar.charValue()) { throw new IllegalStateException("The quoteChar character and the delimiter cannot be the same ('" + quoteChar + "')"); } - if (escape != null && delimiter == escape) { + if (escape != null && delimiter == escape.charValue()) { throw new IllegalStateException("The escape character and the delimiter cannot be the same ('" + escape + "')"); } - if (commentStart != null && delimiter == commentStart) { + if (commentStart != null && delimiter == commentStart.charValue()) { throw new IllegalStateException("The comment start character and the delimiter cannot be the same ('" + commentStart + "')"); }