Don't omit default cases
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582814 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1933f8abaf
commit
9873b13df2
|
@ -449,6 +449,8 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
|
|||
sb.append(this.reusableToken.content);
|
||||
this.reusableToken.type = TOKEN; // Read another token
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unexpected Token type: " + this.reusableToken.type);
|
||||
}
|
||||
} while (this.reusableToken.type == TOKEN);
|
||||
|
||||
|
|
|
@ -240,6 +240,8 @@ public final class CSVPrinter implements Flushable, Closeable {
|
|||
return;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unexpected Quote value: " + quotePolicy);
|
||||
}
|
||||
|
||||
if (!quote) {
|
||||
|
|
Loading…
Reference in New Issue