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:
Benedikt Ritter 2014-07-10 19:06:44 +00:00
parent 43560d92ec
commit 4117bb493f
1 changed files with 4 additions and 4 deletions

View File

@ -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");
}
}