File tree Expand file tree Collapse file tree
main/java/org/apache/commons/csv
test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2305,7 +2305,7 @@ private void validate() throws IllegalArgumentException {
23052305 if (headers != null && duplicateHeaderMode != DuplicateHeaderMode .ALLOW_ALL ) {
23062306 final Set <String > dupCheckSet = new HashSet <>(headers .length );
23072307 final boolean emptyDuplicatesAllowed = duplicateHeaderMode == DuplicateHeaderMode .ALLOW_EMPTY ;
2308- for (String header : headers ) {
2308+ for (final String header : headers ) {
23092309 final boolean blank = isBlank (header );
23102310 // Sanitise all empty headers to the empty string "" when checking duplicates
23112311 final boolean containsHeader = !dupCheckSet .add (blank ? "" : header );
Original file line number Diff line number Diff line change 5353
5454import org .apache .commons .io .input .BOMInputStream ;
5555import org .apache .commons .io .input .BrokenInputStream ;
56+ import org .junit .jupiter .api .Assertions ;
5657import org .junit .jupiter .api .Disabled ;
5758import org .junit .jupiter .api .Test ;
5859
@@ -113,7 +114,7 @@ private BOMInputStream createBOMInputStream(final String resource) throws IOExce
113114 }
114115
115116 private void parseFully (final CSVParser parser ) {
116- parser .forEach (record -> assertNotNull ( record ) );
117+ parser .forEach (Assertions :: assertNotNull );
117118 }
118119
119120 @ Test
Original file line number Diff line number Diff line change 3131
3232public class JiraCsv288Test {
3333
34- private void print (final CSVRecord csvRecord , CSVPrinter csvPrinter ) throws IOException {
35- for (String value : csvRecord ) {
34+ private void print (final CSVRecord csvRecord , final CSVPrinter csvPrinter ) throws IOException {
35+ for (final String value : csvRecord ) {
3636 csvPrinter .print (value );
3737 }
3838 }
You can’t perform that action at this time.
0 commit comments