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 1717
1818package org .apache .commons .csv ;
1919
20- import java .io .IOException ;
20+ import static org .apache .commons .csv .Token .Type .COMMENT ;
21+ import static org .apache .commons .csv .Token .Type .EOF ;
22+ import static org .apache .commons .csv .Token .Type .EORECORD ;
23+ import static org .apache .commons .csv .Token .Type .INVALID ;
24+ import static org .apache .commons .csv .Token .Type .TOKEN ;
2125
22- import static org . apache . commons . csv . Token . Type .* ;
26+ import java . io . IOException ;
2327
2428class CSVLexer extends Lexer {
2529
Original file line number Diff line number Diff line change 2323import java .io .Reader ;
2424import java .io .StringReader ;
2525import java .util .ArrayList ;
26- import java .util .HashMap ;
2726import java .util .Iterator ;
2827import java .util .LinkedHashMap ;
2928import java .util .List ;
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20- import static org .apache .commons .csv .Token .Type .* ;
20+ import static org .apache .commons .csv .Token .Type .INVALID ;
2121
2222/**
2323 * Token is an internal token representation.
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20+ import static org .junit .Assert .assertEquals ;
21+ import static org .junit .Assert .assertFalse ;
22+ import static org .junit .Assert .assertNotNull ;
23+ import static org .junit .Assert .assertTrue ;
24+ import static org .junit .Assert .fail ;
25+
2026import java .io .ByteArrayInputStream ;
2127import java .io .ByteArrayOutputStream ;
2228import java .io .ObjectInputStream ;
2329import java .io .ObjectOutputStream ;
2430
2531import org .junit .Test ;
2632
27- import static org .junit .Assert .*;
28-
2933public class CSVFormatTest {
3034
3135 @ Test
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20- import java .io .IOException ;
20+ import static org .apache .commons .csv .Token .Type .EOF ;
21+ import static org .apache .commons .csv .Token .Type .EORECORD ;
22+ import static org .apache .commons .csv .Token .Type .TOKEN ;
2123
22- import static org . apache . commons . csv . Token . Type .* ;
24+ import java . io . IOException ;
2325
2426class CSVLexer1 extends Lexer {
2527
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20- import java .io .IOException ;
20+ import static org .apache .commons .csv .Token .Type .COMMENT ;
21+ import static org .apache .commons .csv .Token .Type .EOF ;
22+ import static org .apache .commons .csv .Token .Type .EORECORD ;
23+ import static org .apache .commons .csv .Token .Type .INVALID ;
24+ import static org .apache .commons .csv .Token .Type .TOKEN ;
2125
22- import static org . apache . commons . csv . Token . Type .* ;
26+ import java . io . IOException ;
2327
2428class CSVLexer1306663 extends Lexer {
2529
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20- import java .io .IOException ;
20+ import static org .apache .commons .csv .Token .Type .COMMENT ;
21+ import static org .apache .commons .csv .Token .Type .EOF ;
22+ import static org .apache .commons .csv .Token .Type .EORECORD ;
23+ import static org .apache .commons .csv .Token .Type .INVALID ;
24+ import static org .apache .commons .csv .Token .Type .TOKEN ;
2125
22- import static org . apache . commons . csv . Token . Type .* ;
26+ import java . io . IOException ;
2327
2428class CSVLexer1306667 extends Lexer {
2529
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20- import java .io .IOException ;
20+ import static org .apache .commons .csv .Token .Type .COMMENT ;
21+ import static org .apache .commons .csv .Token .Type .EOF ;
22+ import static org .apache .commons .csv .Token .Type .EORECORD ;
23+ import static org .apache .commons .csv .Token .Type .INVALID ;
24+ import static org .apache .commons .csv .Token .Type .TOKEN ;
2125
22- import static org . apache . commons . csv . Token . Type .* ;
26+ import java . io . IOException ;
2327
2428/**
2529 * Experimental Lexer using enums to keep track of state and character type.
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20+ import static org .apache .commons .csv .Token .Type .COMMENT ;
21+ import static org .apache .commons .csv .Token .Type .EOF ;
22+ import static org .apache .commons .csv .Token .Type .EORECORD ;
23+ import static org .apache .commons .csv .Token .Type .TOKEN ;
24+ import static org .junit .Assert .assertEquals ;
25+ import static org .junit .Assert .assertFalse ;
26+ import static org .junit .Assert .assertTrue ;
27+ import static org .junit .Assert .fail ;
28+
2029import java .io .IOException ;
2130import java .io .StringReader ;
2231
2332import org .junit .Test ;
2433
25- import static org .apache .commons .csv .Token .Type .*;
26- import static org .junit .Assert .*;
27-
2834public class CSVLexerTest {
2935
3036 private Lexer getLexer (String input , CSVFormat format ) {
Original file line number Diff line number Diff line change 1717
1818package org .apache .commons .csv ;
1919
20+ import static org .junit .Assert .assertArrayEquals ;
21+ import static org .junit .Assert .assertEquals ;
22+ import static org .junit .Assert .assertFalse ;
23+ import static org .junit .Assert .assertNotNull ;
24+ import static org .junit .Assert .assertNull ;
25+ import static org .junit .Assert .assertTrue ;
26+ import static org .junit .Assert .fail ;
27+
2028import java .io .IOException ;
2129import java .io .Reader ;
2230import java .io .StringReader ;
3139import org .junit .Ignore ;
3240import org .junit .Test ;
3341
34- import static org .junit .Assert .*;
35-
3642/**
3743 * CSVParserTest
3844 *
You can’t perform that action at this time.
0 commit comments