Organize imports.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2012-10-11 14:02:33 +00:00
parent 6359d220bd
commit 4bc562f47b
12 changed files with 58 additions and 23 deletions

View File

@ -17,9 +17,13 @@
package org.apache.commons.csv;
import java.io.IOException;
import static org.apache.commons.csv.Token.Type.COMMENT;
import static org.apache.commons.csv.Token.Type.EOF;
import static org.apache.commons.csv.Token.Type.EORECORD;
import static org.apache.commons.csv.Token.Type.INVALID;
import static org.apache.commons.csv.Token.Type.TOKEN;
import static org.apache.commons.csv.Token.Type.*;
import java.io.IOException;
class CSVLexer extends Lexer {

View File

@ -23,7 +23,6 @@ import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;

View File

@ -17,7 +17,7 @@
package org.apache.commons.csv;
import static org.apache.commons.csv.Token.Type.*;
import static org.apache.commons.csv.Token.Type.INVALID;
/**
* Token is an internal token representation.

View File

@ -17,6 +17,12 @@
package org.apache.commons.csv;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
@ -24,8 +30,6 @@ import java.io.ObjectOutputStream;
import org.junit.Test;
import static org.junit.Assert.*;
public class CSVFormatTest {
@Test

View File

@ -17,9 +17,11 @@
package org.apache.commons.csv;
import java.io.IOException;
import static org.apache.commons.csv.Token.Type.EOF;
import static org.apache.commons.csv.Token.Type.EORECORD;
import static org.apache.commons.csv.Token.Type.TOKEN;
import static org.apache.commons.csv.Token.Type.*;
import java.io.IOException;
class CSVLexer1 extends Lexer {

View File

@ -17,9 +17,13 @@
package org.apache.commons.csv;
import java.io.IOException;
import static org.apache.commons.csv.Token.Type.COMMENT;
import static org.apache.commons.csv.Token.Type.EOF;
import static org.apache.commons.csv.Token.Type.EORECORD;
import static org.apache.commons.csv.Token.Type.INVALID;
import static org.apache.commons.csv.Token.Type.TOKEN;
import static org.apache.commons.csv.Token.Type.*;
import java.io.IOException;
class CSVLexer1306663 extends Lexer {

View File

@ -17,9 +17,13 @@
package org.apache.commons.csv;
import java.io.IOException;
import static org.apache.commons.csv.Token.Type.COMMENT;
import static org.apache.commons.csv.Token.Type.EOF;
import static org.apache.commons.csv.Token.Type.EORECORD;
import static org.apache.commons.csv.Token.Type.INVALID;
import static org.apache.commons.csv.Token.Type.TOKEN;
import static org.apache.commons.csv.Token.Type.*;
import java.io.IOException;
class CSVLexer1306667 extends Lexer {

View File

@ -17,9 +17,13 @@
package org.apache.commons.csv;
import java.io.IOException;
import static org.apache.commons.csv.Token.Type.COMMENT;
import static org.apache.commons.csv.Token.Type.EOF;
import static org.apache.commons.csv.Token.Type.EORECORD;
import static org.apache.commons.csv.Token.Type.INVALID;
import static org.apache.commons.csv.Token.Type.TOKEN;
import static org.apache.commons.csv.Token.Type.*;
import java.io.IOException;
/**
* Experimental Lexer using enums to keep track of state and character type.

View File

@ -17,14 +17,20 @@
package org.apache.commons.csv;
import static org.apache.commons.csv.Token.Type.COMMENT;
import static org.apache.commons.csv.Token.Type.EOF;
import static org.apache.commons.csv.Token.Type.EORECORD;
import static org.apache.commons.csv.Token.Type.TOKEN;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.io.StringReader;
import org.junit.Test;
import static org.apache.commons.csv.Token.Type.*;
import static org.junit.Assert.*;
public class CSVLexerTest {
private Lexer getLexer(String input, CSVFormat format) {

View File

@ -17,6 +17,14 @@
package org.apache.commons.csv;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
@ -31,8 +39,6 @@ import junit.framework.Assert;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* CSVParserTest
*

View File

@ -17,6 +17,8 @@
package org.apache.commons.csv;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.io.StringWriter;
import java.util.List;
@ -24,8 +26,6 @@ import java.util.Random;
import org.junit.Test;
import static org.junit.Assert.*;
public class CSVPrinterTest {
String lineSeparator = CSVFormat.DEFAULT.getLineSeparator();

View File

@ -17,12 +17,14 @@
package org.apache.commons.csv;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.io.StringReader;
import org.junit.Test;
import static org.junit.Assert.*;
public class ExtendedBufferedReaderTest {
@Test