mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-09 19:45:38 +00:00
Explicit unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7c770e0b53
commit
6f94c8a3da
@ -192,15 +192,15 @@ public class CSVFormat implements Serializable {
|
||||
* @throws IllegalStateException
|
||||
*/
|
||||
void validate() throws IllegalStateException {
|
||||
if (quoteChar != null && delimiter == quoteChar) {
|
||||
if (quoteChar != null && delimiter == quoteChar.charValue()) {
|
||||
throw new IllegalStateException("The quoteChar character and the delimiter cannot be the same ('" + quoteChar + "')");
|
||||
}
|
||||
|
||||
if (escape != null && delimiter == escape) {
|
||||
if (escape != null && delimiter == escape.charValue()) {
|
||||
throw new IllegalStateException("The escape character and the delimiter cannot be the same ('" + escape + "')");
|
||||
}
|
||||
|
||||
if (commentStart != null && delimiter == commentStart) {
|
||||
if (commentStart != null && delimiter == commentStart.charValue()) {
|
||||
throw new IllegalStateException("The comment start character and the delimiter cannot be the same ('" + commentStart +
|
||||
"')");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user