We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43560d9 commit 4117bb4Copy full SHA for 4117bb4
1 file changed
src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -701,10 +701,10 @@ private void validate() throws IllegalArgumentException {
701
throw new IllegalArgumentException("No quotes mode set but no escape character is set");
702
}
703
704
- if(recordSeparator != null
705
- && !(CRLF.equals(recordSeparator)
706
- || String.valueOf(CR).equals(recordSeparator)
707
- || String.valueOf(LF).equals(recordSeparator))) {
+ if(recordSeparator != null &&
+ !(CRLF.equals(recordSeparator) ||
+ String.valueOf(CR).equals(recordSeparator) ||
+ String.valueOf(LF).equals(recordSeparator))) {
708
throw new IllegalArgumentException("Record separator can only by CR, LF or CRLF");
709
710
0 commit comments