You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2020/06/20 01:04:58 UTC
[commons-validator] branch master updated: delete StandardCharsets
as it is since 1.7 and this repo use java 1.6
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git
The following commit(s) were added to refs/heads/master by this push:
new fb9f732 delete StandardCharsets as it is since 1.7 and this repo use java 1.6
new 4348e49 Merge pull request #27 from XenoAmess/deleteStandardCharsets
fb9f732 is described below
commit fb9f732970489581655bd918b764a401821fef42
Author: XenoAmess <xe...@gmail.com>
AuthorDate: Fri Jun 19 06:48:02 2020 +0800
delete StandardCharsets as it is since 1.7 and this repo use java 1.6
---
.../java/org/apache/commons/validator/routines/IBANValidatorTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
index 833f890..6e90e00 100644
--- a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
+++ b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
@@ -26,7 +26,6 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.Reader;
-import java.nio.charset.StandardCharsets;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -236,7 +235,7 @@ public class IBANValidatorTest {
// The IBAN Registry (TXT) file is a TAB-separated file
// Rows are the entry types, columns are the countries
CSVFormat format = CSVFormat.DEFAULT.withDelimiter('\t');
- Reader rdr = new InputStreamReader(new FileInputStream(file), StandardCharsets.ISO_8859_1);
+ Reader rdr = new InputStreamReader(new FileInputStream(file), "ISO_8859_1");
CSVParser p = new CSVParser(rdr, format);
CSVRecord country = null;
CSVRecord cc = null;