Make Checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1609552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
43560d92ec
commit
4117bb493f
|
@ -701,10 +701,10 @@ public final class CSVFormat implements Serializable {
|
|||
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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue