commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1398354 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
Date Mon, 15 Oct 2012 16:02:33 GMT
Author: sebb
Date: Mon Oct 15 16:02:32 2012
New Revision: 1398354

URL: http://svn.apache.org/viewvc?rev=1398354&view=rev
Log:
Explicit unboxing

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?rev=1398354&r1=1398353&r2=1398354&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Mon Oct 15
16:02:32 2012
@@ -192,15 +192,15 @@ public class CSVFormat implements Serial
      * @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 + 
                     "')");
         }



Mime
View raw message