Skip to content

Commit 6f94c8a

Browse files
committed
Explicit unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398354 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7c770e0 commit 6f94c8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ private static boolean isLineBreak(final char c) {
192192
* @throws IllegalStateException
193193
*/
194194
void validate() throws IllegalStateException {
195-
if (quoteChar != null && delimiter == quoteChar) {
195+
if (quoteChar != null && delimiter == quoteChar.charValue()) {
196196
throw new IllegalStateException("The quoteChar character and the delimiter cannot be the same ('" + quoteChar + "')");
197197
}
198198

199-
if (escape != null && delimiter == escape) {
199+
if (escape != null && delimiter == escape.charValue()) {
200200
throw new IllegalStateException("The escape character and the delimiter cannot be the same ('" + escape + "')");
201201
}
202202

203-
if (commentStart != null && delimiter == commentStart) {
203+
if (commentStart != null && delimiter == commentStart.charValue()) {
204204
throw new IllegalStateException("The comment start character and the delimiter cannot be the same ('" + commentStart +
205205
"')");
206206
}

0 commit comments

Comments
 (0)