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 7f64d84b Fix checkstyle 7f64d84b is described below commit 7f64d84b8ab864ec9a0d30632bc0928292c82599 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jan 4 08:51:35 2025 -0500 Fix checkstyle --- src/site/xdoc/user-guide.xml | 4 ++-- src/test/java/org/apache/commons/csv/UserGuideTest.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/site/xdoc/user-guide.xml b/src/site/xdoc/user-guide.xml index 5995879b..3ec3dd9b 100644 --- a/src/site/xdoc/user-guide.xml +++ b/src/site/xdoc/user-guide.xml @@ -71,10 +71,10 @@ for (CSVRecord record : records) { for example: </p> <source> -try (final Reader reader = new InputStreamReader(BOMInputStream.builder() +try (Reader reader = new InputStreamReader(BOMInputStream.builder() .setPath(path) .get(), "UTF-8"); - final CSVParser parser = CSVFormat.EXCEL.builder() + CSVParser parser = CSVFormat.EXCEL.builder() .setHeader() .get() .parse(reader)) { diff --git a/src/test/java/org/apache/commons/csv/UserGuideTest.java b/src/test/java/org/apache/commons/csv/UserGuideTest.java index 27001b1a..6b97ccde 100644 --- a/src/test/java/org/apache/commons/csv/UserGuideTest.java +++ b/src/test/java/org/apache/commons/csv/UserGuideTest.java @@ -58,10 +58,10 @@ public class UserGuideTest { final Path path = tempDir.resolve("test1.csv"); Files.copy(Utils.createUtf8Input("ColumnA, ColumnB, ColumnC\r\nA, B, C\r\n".getBytes(StandardCharsets.UTF_8), true), path); // @formatter:off - try (final Reader reader = new InputStreamReader(BOMInputStream.builder() + try (Reader reader = new InputStreamReader(BOMInputStream.builder() .setPath(path) .get(), "UTF-8"); - final CSVParser parser = CSVFormat.EXCEL.builder() + CSVParser parser = CSVFormat.EXCEL.builder() .setHeader() .get() .parse(reader)) { @@ -72,14 +72,14 @@ public class UserGuideTest { } } } - + @Test public void testBomUtil() throws UnsupportedEncodingException, IOException { final Path path = tempDir.resolve("test2.csv"); Files.copy(Utils.createUtf8Input("ColumnA, ColumnB, ColumnC\r\nA, B, C\r\n".getBytes(StandardCharsets.UTF_8), true), path); - try (final Reader reader = newReader(path); + try (Reader reader = newReader(path); // @formatter:off - final CSVParser parser = CSVFormat.EXCEL.builder() + CSVParser parser = CSVFormat.EXCEL.builder() .setHeader() .get() .parse(reader)) {