Author: ggregory
Date: Sat Oct 13 16:03:03 2012
New Revision: 1397872

URL: http://svn.apache.org/viewvc?rev=1397872&view=rev
Log:
Use the single quote char to delineate a char in error messages. Remove a 
trailing space.

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=1397872&r1=1397871&r2=1397872&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 
Sat Oct 13 16:03:03 2012
@@ -117,7 +117,7 @@ public class CSVFormat implements Serial
      * @see <a href="http://dev.mysql.com/doc/refman/5.1/en/load-data.html";>
      *      http://dev.mysql.com/doc/refman/5.1/en/load-data.html</a>
      */
-    public static final CSVFormat MYSQL = 
+    public static final CSVFormat MYSQL =
             PRISTINE
             .withDelimiter(TAB)
             .withEscape(ESCAPE)
@@ -172,28 +172,25 @@ public class CSVFormat implements Serial
      */
     void validate() throws IllegalArgumentException {
         if (delimiter == encapsulator) {
-            throw new IllegalArgumentException("The encapsulator character and 
the delimiter cannot be the same (\"" +
-                    encapsulator + "\")");
+            throw new IllegalArgumentException("The encapsulator character and 
the delimiter cannot be the same ('" + encapsulator + ")");
         }
 
         if (delimiter == escape) {
-            throw new IllegalArgumentException("The escape character and the 
delimiter cannot be the same (\"" +
-                    escape + "\")");
+            throw new IllegalArgumentException("The escape character and the 
delimiter cannot be the same ('" + escape + "')");
         }
 
         if (delimiter == commentStart) {
-            throw new IllegalArgumentException("The comment start character 
and the delimiter cannot be the same (\"" +
-                    commentStart + "\")");
+            throw new IllegalArgumentException("The comment start character 
and the delimiter cannot be the same ('" + commentStart + 
+                    "')");
         }
 
         if (encapsulator != null && encapsulator == commentStart) {
-            throw new IllegalArgumentException(
-                    "The comment start character and the encapsulator cannot 
be the same (\"" + commentStart + "\")");
+            throw new IllegalArgumentException("The comment start character 
and the encapsulator cannot be the same ('" + commentStart + 
+                    "')");
         }
 
         if (escape != null && escape == commentStart) {
-            throw new IllegalArgumentException("The comment start and the 
escape character cannot be the same (\"" +
-                    commentStart + "\")");
+            throw new IllegalArgumentException("The comment start and the 
escape character cannot be the same ('" + commentStart + "')");
         }
     }
 


Reply via email to