You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2014/07/10 21:06:45 UTC
svn commit: r1609552 -
/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
Author: britter
Date: Thu Jul 10 19:06:44 2014
New Revision: 1609552
URL: http://svn.apache.org/r1609552
Log:
Make Checkstyle happy
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=1609552&r1=1609551&r2=1609552&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 Thu Jul 10 19:06:44 2014
@@ -701,10 +701,10 @@ public final class CSVFormat implements
throw new IllegalArgumentException("No quotes mode set but no escape character is set");
}
- if(recordSeparator != null
- && !(CRLF.equals(recordSeparator)
- || String.valueOf(CR).equals(recordSeparator)
- || String.valueOf(LF).equals(recordSeparator))) {
+ if(recordSeparator != null &&
+ !(CRLF.equals(recordSeparator) ||
+ String.valueOf(CR).equals(recordSeparator) ||
+ String.valueOf(LF).equals(recordSeparator))) {
throw new IllegalArgumentException("Record separator can only by CR, LF or CRLF");
}
}