This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push: new 8000d69 Javadoc. 8000d69 is described below commit 8000d695901ea64b99584a37b6a765561179c727 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun May 24 16:02:55 2020 -0400 Javadoc. --- src/main/java/org/apache/commons/csv/CSVFormat.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index e0258f3..c00f993 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -1261,21 +1261,19 @@ public final class CSVFormat implements Serializable { } /** - * Prints to the specified output. + * Prints to the specified output, returns a {@code CSVPrinter} which the caller MUST close. * * <p> * See also {@link CSVPrinter}. * </p> * - * @param out - * the output. - * @param charset - * A charset. + * @param out the output. + * @param charset A charset. * @return a printer to an output. - * @throws IOException - * thrown if the optional header cannot be printed. + * @throws IOException thrown if the optional header cannot be printed. * @since 1.5 */ + @SuppressWarnings("resource") public CSVPrinter print(final Path out, final Charset charset) throws IOException { return print(Files.newBufferedWriter(out, charset)); }