Skip to content
Permalink
Browse files
Bump commons-parent from 52 to 53.
Allow org.apache.commons.csv.IOUtils.copy(Reader, Appendable,
CharBuffer) to compile on Java 11 and run on Java 8.
  • Loading branch information
garydgregory committed Apr 10, 2022
1 parent dd75e11 commit 8db60a936d50f56c6307e6ce138383fe9f136a25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
@@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.commons</groupId>
<artifactId>commons-parent</artifactId>
<version>52</version>
<version>53</version>
</parent>
<artifactId>commons-csv</artifactId>
<version>1.10.0-SNAPSHOT</version>
@@ -44,6 +44,8 @@
<action issue="CSV-292" type="fix" dev="kinow" due-to="Rob Vesse">No Automatic-Module-Name prevents usage in JPMS projects without repacking the JAR.</action>
<action issue="CSV-288" type="fix" dev="ggregory" due-to="Santhsoh, Angus">Fix for multi-char delimiter not working as expected #218.</action>
<action issue="CSV-269" type="fix" dev="ggregory" due-to="Auke te Winkel, Gary Gregory">CSVRecord.get(Enum) should use Enum.name() instead of Enum.toString().</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Allow org.apache.commons.csv.IOUtils.copy(Reader, Appendable, CharBuffer) to compile on Java 11 and run on Java 8.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Bump commons-parent from 52 to 53.</action>
<!-- ADD -->
<action issue="CSV-291" type="add" dev="ggregory" due-to="Gary Gregory">Make CSVRecord#values() public.</action>
<action issue="CSV-264" type="add" dev="ggregory" due-to="Sagar Tiwari, Seth Falco, Alex Herbert, Gary Gregory">Add DuplicateHeaderMode for flexibility with header strictness. #114.</action>
@@ -19,6 +19,7 @@
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.nio.Buffer;
import java.nio.CharBuffer;

/** Copied from Apache Commons IO. */
@@ -79,7 +80,7 @@ static long copy(final Reader input, final Appendable output, final CharBuffer b
long count = 0;
int n;
while (EOF != (n = input.read(buffer))) {
buffer.flip();
((Buffer) buffer).flip();
output.append(buffer, 0, n);
count += n;
}

0 comments on commit 8db60a9

Please sign in to comment.