We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47dbc8f commit 676a580Copy full SHA for 676a580
1 file changed
src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -94,9 +94,7 @@ public void close() throws IOException {
94
*/
95
public void close(final boolean flush) throws IOException {
96
if (flush || format.getAutoFlush()) {
97
- if (out instanceof Flushable) {
98
- ((Flushable) out).flush();
99
- }
+ flush();
100
}
101
if (out instanceof Closeable) {
102
((Closeable) out).close();
0 commit comments