Skip to content

Commit b8a36ab

Browse files
committed
Use standard constant
1 parent fb21d69 commit b8a36ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void testBackslashEscapingOld() throws IOException {
214214
@Disabled("CSV-107")
215215
public void testBOM() throws IOException {
216216
final URL url = ClassLoader.getSystemClassLoader().getResource("org/apache/commons/csv/CSVFileParser/bom.csv");
217-
try (final CSVParser parser = CSVParser.parse(url, Charset.forName(UTF_8_NAME), CSVFormat.EXCEL.withHeader())) {
217+
try (final CSVParser parser = CSVParser.parse(url, StandardCharsets.UTF_8, CSVFormat.EXCEL.withHeader())) {
218218
parser.forEach(record -> assertNotNull(record.get("Date")));
219219
}
220220
}

0 commit comments

Comments
 (0)