Skip to content

Commit 8000d69

Browse files
committed
Javadoc.
1 parent adc4faa commit 8000d69

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,21 +1261,19 @@ private void print(final Object object, final CharSequence value, final Appendab
12611261
}
12621262

12631263
/**
1264-
* Prints to the specified output.
1264+
* Prints to the specified output, returns a {@code CSVPrinter} which the caller MUST close.
12651265
*
12661266
* <p>
12671267
* See also {@link CSVPrinter}.
12681268
* </p>
12691269
*
1270-
* @param out
1271-
* the output.
1272-
* @param charset
1273-
* A charset.
1270+
* @param out the output.
1271+
* @param charset A charset.
12741272
* @return a printer to an output.
1275-
* @throws IOException
1276-
* thrown if the optional header cannot be printed.
1273+
* @throws IOException thrown if the optional header cannot be printed.
12771274
* @since 1.5
12781275
*/
1276+
@SuppressWarnings("resource")
12791277
public CSVPrinter print(final Path out, final Charset charset) throws IOException {
12801278
return print(Files.newBufferedWriter(out, charset));
12811279
}

0 commit comments

Comments
 (0)