From 998e4642d41d37d8210d5d84fd892bbe09ada6aa Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 3 Feb 2024 13:05:30 -0500 Subject: [PATCH] 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); }