You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/01/16 16:52:49 UTC

[commons-validator] branch master updated: Don't use deprecated method

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-validator.git


The following commit(s) were added to refs/heads/master by this push:
     new de050ad8 Don't use deprecated method
de050ad8 is described below

commit de050ad80d6139e512e3366b8405f652ce2f8a97
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jan 16 11:52:45 2023 -0500

    Don't use deprecated method
---
 .../java/org/apache/commons/validator/routines/IBANValidatorTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 69ff2ae8..3ac536cc 100644
--- a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
+++ b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
@@ -58,7 +58,7 @@ public class IBANValidatorTest {
     private static int checkIBAN(final File file, final IBANValidator val) throws Exception {
         // The IBAN Registry (TXT) file is a TAB-separated file
         // Rows are the entry types, columns are the countries
-        final CSVFormat format = CSVFormat.DEFAULT.withDelimiter('\t');
+        final CSVFormat format = CSVFormat.DEFAULT.builder().setDelimiter('\t').build();
         final Reader rdr = new InputStreamReader(new FileInputStream(file), "ISO_8859_1");
         try (final CSVParser p = new CSVParser(rdr, format)) {
             CSVRecord country = null;