File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Example Java code of using the CSV Validator through the Java API:
7575 csvReader, csvSchemaReader
7676 )
7777
78- List< FailMessage > messages = validateWithStringNames
78+ Result result = validateWithStringNames
7979 .usingCsvEncoding(csvEncoding, validateCsvEncoding) // should only be `true` if using UTF-8 encoding, otherwise it will throw an exception
8080 .usingCsvSchemaEncoding(csvSchemaEncoding)
8181 .usingFailFast(failFast)
@@ -87,6 +87,8 @@ Example Java code of using the CSV Validator through the Java API:
8787 .usingMaxCharsPerCell(maxCharsPerCell)
8888 .runValidation();
8989
90+ List<FailMessage > messages = ((CsvValidatorJavaBridge . ValidationResult )(result)). errors();
91+
9092 if (messages. isEmpty()) {
9193 System . out. println(" All worked OK" );
9294 } else {
You can’t perform that action at this time.
0 commit comments