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

commit 998e4642d41d37d8210d5d84fd892bbe09ada6aa
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Feb 3 13:05:30 2024 -0500

    Use final
---
 src/test/java/org/apache/commons/csv/CSVFormatTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java 
b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
index e3a284f7..8bd8fed6 100644
--- a/src/test/java/org/apache/commons/csv/CSVFormatTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
@@ -937,14 +937,14 @@ public class CSVFormatTest {
 
     @Test
     public void testQuoteModeNoneShouldReturnMeaningfulExceptionMessage() {
-        Exception exception = assertThrows(IllegalArgumentException.class, () 
-> {
+        final Exception exception = 
assertThrows(IllegalArgumentException.class, () -> {
             CSVFormat.DEFAULT.builder()
                     .setHeader("Col1", "Col2", "Col3", "Col4")
                     .setQuoteMode(QuoteMode.NONE)
                     .build();
         });
-        String actualMessage = exception.getMessage();
-        String expectedMessage = "Quote mode set to NONE but no escape 
character is set";
+        final String actualMessage = exception.getMessage();
+        final String expectedMessage = "Quote mode set to NONE but no escape 
character is set";
         assertEquals(expectedMessage, actualMessage);
     }
 

Reply via email to