@@ -117,7 +117,7 @@ public class CSVFormat implements Serializable {
117117 * @see <a href="http://dev.mysql.com/doc/refman/5.1/en/load-data.html">
118118 * http://dev.mysql.com/doc/refman/5.1/en/load-data.html</a>
119119 */
120- public static final CSVFormat MYSQL =
120+ public static final CSVFormat MYSQL =
121121 PRISTINE
122122 .withDelimiter (TAB )
123123 .withEscape (ESCAPE )
@@ -172,28 +172,25 @@ private static boolean isLineBreak(final Character c) {
172172 */
173173 void validate () throws IllegalArgumentException {
174174 if (delimiter == encapsulator ) {
175- throw new IllegalArgumentException ("The encapsulator character and the delimiter cannot be the same (\" " +
176- encapsulator + "\" )" );
175+ throw new IllegalArgumentException ("The encapsulator character and the delimiter cannot be the same ('" + encapsulator + ")" );
177176 }
178177
179178 if (delimiter == escape ) {
180- throw new IllegalArgumentException ("The escape character and the delimiter cannot be the same (\" " +
181- escape + "\" )" );
179+ throw new IllegalArgumentException ("The escape character and the delimiter cannot be the same ('" + escape + "')" );
182180 }
183181
184182 if (delimiter == commentStart ) {
185- throw new IllegalArgumentException ("The comment start character and the delimiter cannot be the same (\" " +
186- commentStart + " \" )" );
183+ throw new IllegalArgumentException ("The comment start character and the delimiter cannot be the same ('" + commentStart +
184+ "' )" );
187185 }
188186
189187 if (encapsulator != null && encapsulator == commentStart ) {
190- throw new IllegalArgumentException (
191- "The comment start character and the encapsulator cannot be the same ( \" " + commentStart + " \" )" );
188+ throw new IllegalArgumentException ("The comment start character and the encapsulator cannot be the same ('" + commentStart +
189+ "' )" );
192190 }
193191
194192 if (escape != null && escape == commentStart ) {
195- throw new IllegalArgumentException ("The comment start and the escape character cannot be the same (\" " +
196- commentStart + "\" )" );
193+ throw new IllegalArgumentException ("The comment start and the escape character cannot be the same ('" + commentStart + "')" );
197194 }
198195 }
199196
0 commit comments