Skip to content

Commit ed65e66

Browse files
committed
Use StandardCharsets class in user guide code examples, since it is more save than passing a string
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1610786 13f79535-47bb-0310-9956-ffa450edef68
1 parent f4e1197 commit ed65e66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/site/xdoc/user-guide.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ for (CSVRecord record : records) {
4040
</p>
4141
<source>final URL url = ...;
4242
try (
43-
final Reader reader = new InputStreamReader(new BOMInputStream(url.openStream()), "UTF-8");
43+
final Reader reader = new InputStreamReader(new BOMInputStream(url.openStream()), StandardCharsets.UTF_8);
4444
final CSVParser parser = new CSVParser(reader, CSVFormat.EXCEL.withHeader());
4545
) {
4646
for (final CSVRecord record : parser) {

0 commit comments

Comments
 (0)