commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1748096 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
Date Mon, 13 Jun 2016 06:58:34 GMT
Author: ggregory
Date: Mon Jun 13 06:58:34 2016
New Revision: 1748096

URL: http://svn.apache.org/viewvc?rev=1748096&view=rev
Log:
Use final.

Modified:
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java?rev=1748096&r1=1748095&r2=1748096&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java Mon Jun
13 06:58:34 2016
@@ -237,7 +237,7 @@ public class CSVParserTest {
         final String[][] res_comments = { { "a", "b#" }, { "\n", " ", "#" }, };
 
         try (final CSVParser parser = CSVParser.parse(code, format)) {
-            List<CSVRecord> records = parser.getRecords();
+            final List<CSVRecord> records = parser.getRecords();
             assertTrue(records.size() > 0);
 
             Utils.compare("Failed to parse without comments", res, records);
@@ -245,7 +245,7 @@ public class CSVParserTest {
             format = CSVFormat.DEFAULT.withCommentMarker('#');
         }
         try (final CSVParser parser = CSVParser.parse(code, format)) {
-            List<CSVRecord> records = parser.getRecords();
+            final List<CSVRecord> records = parser.getRecords();
 
             Utils.compare("Failed to parse with comments", res_comments, records);
         }



Mime
View raw message