cleaned up imports, yay IDEAJ!

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1274 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-12-06 21:57:53 +00:00
parent d0f82ba9cc
commit 56c51b3940
175 changed files with 690 additions and 616 deletions

View File

@ -7,8 +7,8 @@ package test.net.sourceforge.pmd;
import junit.framework.TestCase;
import net.sourceforge.pmd.AbstractRule;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RuleViolation;
public class AbstractRuleTest extends TestCase {

View File

@ -5,9 +5,16 @@
*/
package test.net.sourceforge.pmd;
import net.sourceforge.pmd.*;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RuleProperties;
import net.sourceforge.pmd.RuleViolation;
import java.util.*;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
public class MockRule implements Rule {

View File

@ -6,10 +6,13 @@
package test.net.sourceforge.pmd;
import junit.framework.TestCase;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.ReportListener;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.renderers.Renderer;
import net.sourceforge.pmd.renderers.XMLRenderer;
import net.sourceforge.pmd.stat.Metric;
import net.sourceforge.pmd.*;
import java.util.Iterator;

View File

@ -6,8 +6,8 @@
package test.net.sourceforge.pmd;
import junit.framework.TestCase;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.RuleContext;
public class RuleContextTest extends TestCase {

View File

@ -6,15 +6,15 @@
package test.net.sourceforge.pmd;
import junit.framework.TestCase;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleSet;
import net.sourceforge.pmd.RuleSetFactory;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleSetNotFoundException;
import java.io.ByteArrayInputStream;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.HashSet;
public class RuleSetFactoryTest extends TestCase {

View File

@ -1,5 +1,13 @@
package test.net.sourceforge.pmd;
import junit.framework.TestCase;
import net.sourceforge.pmd.PMDException;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleProperties;
import net.sourceforge.pmd.RuleSet;
import net.sourceforge.pmd.RuleSetReader;
import net.sourceforge.pmd.RuleSetWriter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
@ -8,15 +16,6 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import junit.framework.TestCase;
import net.sourceforge.pmd.PMDException;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleProperties;
import net.sourceforge.pmd.RuleSet;
import net.sourceforge.pmd.RuleSetReader;
import net.sourceforge.pmd.RuleSetWriter;
/**
* A test for reading and writing a rule set file. The registered rule sets

View File

@ -1,19 +1,20 @@
package test.net.sourceforge.pmd;
import net.sourceforge.pmd.*;
import net.sourceforge.pmd.ast.*;
import junit.framework.TestCase;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RuleSet;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.ast.JavaParser;
import java.io.StringReader;
import java.util.Set;
import java.util.List;
import java.util.Random;
import java.util.HashSet;
import java.util.Iterator;
import java.util.ArrayList;
import java.util.Collections;
import junit.framework.*;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import java.util.Set;
public class RuleSetTest extends TestCase
{

View File

@ -1,11 +1,9 @@
package test.net.sourceforge.pmd;
import junit.framework.*;
import java.util.*;
import junit.framework.TestCase;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RuleViolation;
public class RuleViolationTest extends TestCase {

View File

@ -6,9 +6,9 @@
package test.net.sourceforge.pmd.ast;
import junit.framework.TestCase;
import net.sourceforge.pmd.ast.ASTVariableDeclaratorId;
import net.sourceforge.pmd.ast.ASTTryStatement;
import net.sourceforge.pmd.ast.ASTBlock;
import net.sourceforge.pmd.ast.ASTTryStatement;
import net.sourceforge.pmd.ast.ASTVariableDeclaratorId;
public class ASTVariableDeclaratorIdTest extends TestCase {

View File

@ -1,8 +1,7 @@
package test.net.sourceforge.pmd.ast;
import net.sourceforge.pmd.ast.*;
import junit.framework.*;
import junit.framework.TestCase;
import net.sourceforge.pmd.ast.AccessNode;
public class AccessNodeTest
extends TestCase

View File

@ -1,9 +1,9 @@
package test.net.sourceforge.pmd.ast;
import java.util.Set;
import java.util.Iterator;
import net.sourceforge.pmd.ast.ASTClassDeclaration;
import net.sourceforge.pmd.ast.*;
import java.util.Iterator;
import java.util.Set;
public class ClassDeclTest
extends ParserTst

View File

@ -1,9 +1,9 @@
package test.net.sourceforge.pmd.ast;
import java.util.Set;
import java.util.Iterator;
import net.sourceforge.pmd.ast.ASTFieldDeclaration;
import net.sourceforge.pmd.ast.*;
import java.util.Iterator;
import java.util.Set;
public class FieldDeclTest
extends ParserTst

View File

@ -1,13 +1,10 @@
package test.net.sourceforge.pmd.ast;
import java.io.StringReader;
import net.sourceforge.pmd.ast.ASTMethodDeclaration;
import java.util.Map;
import java.util.Iterator;
import java.util.Set;
import net.sourceforge.pmd.ast.*;
public class MethodDeclTest
extends ParserTst
{

View File

@ -1,15 +1,16 @@
package test.net.sourceforge.pmd.ast;
import junit.framework.TestCase;
import java.util.Set;
import java.util.HashSet;
import net.sourceforge.pmd.ast.ASTCompilationUnit;
import net.sourceforge.pmd.ast.JavaParser;
import net.sourceforge.pmd.ast.JavaParserVisitor;
import java.io.StringReader;
import java.lang.reflect.*;
import net.sourceforge.pmd.ast.*;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.HashSet;
import java.util.Set;
public class ParserTst
extends TestCase

View File

@ -1,11 +1,17 @@
package test.net.sourceforge.pmd.ast;
import net.sourceforge.pmd.ast.*;
import net.sourceforge.pmd.ast.ASTBlock;
import net.sourceforge.pmd.ast.ASTBlockStatement;
import net.sourceforge.pmd.ast.ASTMethodDeclaration;
import net.sourceforge.pmd.ast.ASTName;
import net.sourceforge.pmd.ast.ASTReturnStatement;
import net.sourceforge.pmd.ast.ASTUnmodifiedClassDeclaration;
import net.sourceforge.pmd.ast.SimpleNode;
import java.util.Set;
import java.util.Iterator;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
public class SimpleNodeTest
extends ParserTst

View File

@ -6,11 +6,14 @@
package test.net.sourceforge.pmd.cpd;
import junit.framework.TestCase;
import net.sourceforge.pmd.cpd.*;
import net.sourceforge.pmd.cpd.CPD;
import net.sourceforge.pmd.cpd.Results;
import net.sourceforge.pmd.cpd.Tile;
import net.sourceforge.pmd.cpd.TokenEntry;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
public class CPDTest extends TestCase{

View File

@ -6,7 +6,12 @@
package test.net.sourceforge.pmd.cpd;
import junit.framework.TestCase;
import net.sourceforge.pmd.cpd.*;
import net.sourceforge.pmd.cpd.GST;
import net.sourceforge.pmd.cpd.Results;
import net.sourceforge.pmd.cpd.Tile;
import net.sourceforge.pmd.cpd.TokenEntry;
import net.sourceforge.pmd.cpd.TokenList;
import net.sourceforge.pmd.cpd.TokenSets;
import java.util.Iterator;

View File

@ -6,8 +6,8 @@
package test.net.sourceforge.pmd.cpd;
import junit.framework.TestCase;
import net.sourceforge.pmd.cpd.TokenList;
import net.sourceforge.pmd.cpd.JavaTokensTokenizer;
import net.sourceforge.pmd.cpd.TokenList;
import net.sourceforge.pmd.cpd.Tokenizer;
import java.io.StringReader;

View File

@ -6,7 +6,10 @@
package test.net.sourceforge.pmd.cpd;
import junit.framework.TestCase;
import net.sourceforge.pmd.cpd.*;
import net.sourceforge.pmd.cpd.Occurrences;
import net.sourceforge.pmd.cpd.Tile;
import net.sourceforge.pmd.cpd.TokenEntry;
import net.sourceforge.pmd.cpd.TokenSets;
import java.util.Iterator;

View File

@ -7,9 +7,9 @@ package test.net.sourceforge.pmd.cpd;
import junit.framework.TestCase;
import net.sourceforge.pmd.cpd.Results;
import net.sourceforge.pmd.cpd.ResultsImpl;
import net.sourceforge.pmd.cpd.Tile;
import net.sourceforge.pmd.cpd.TokenEntry;
import net.sourceforge.pmd.cpd.ResultsImpl;
import java.util.Iterator;

View File

@ -6,9 +6,9 @@
package test.net.sourceforge.pmd.cpd;
import junit.framework.TestCase;
import net.sourceforge.pmd.cpd.TokenList;
import net.sourceforge.pmd.cpd.TokenEntry;
import net.sourceforge.pmd.cpd.Tile;
import net.sourceforge.pmd.cpd.TokenEntry;
import net.sourceforge.pmd.cpd.TokenList;
import java.util.ArrayList;
import java.util.List;

View File

@ -6,9 +6,9 @@
package test.net.sourceforge.pmd.cpd;
import junit.framework.TestCase;
import net.sourceforge.pmd.cpd.TokenSets;
import net.sourceforge.pmd.cpd.TokenList;
import net.sourceforge.pmd.cpd.TokenEntry;
import net.sourceforge.pmd.cpd.TokenList;
import net.sourceforge.pmd.cpd.TokenSets;
public class TokenSetsTest extends TestCase {

View File

@ -1,15 +1,15 @@
package test.net.sourceforge.pmd.renderers;
import junit.framework.TestCase;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.renderers.XMLRenderer;
import test.net.sourceforge.pmd.MockRule;
import net.sourceforge.pmd.renderers.*;
import net.sourceforge.pmd.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class XMLRendererTest
extends TestCase

View File

@ -5,8 +5,8 @@
*/
package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.rules.AvoidDeeplyNestedIfStmtsRule;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.rules.AvoidDeeplyNestedIfStmtsRule;
public class AvoidDeeplyNestedIfStmtsRuleTest extends RuleTst {

View File

@ -5,7 +5,6 @@
*/
package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.rules.AvoidDuplicateLiteralsRule;
public class AvoidDuplicateLiteralsRuleTest extends RuleTst {

View File

@ -5,9 +5,6 @@
*/
package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.renderers.Renderer;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.rules.EmptyCatchBlockRule;
public class EmptyCatchBlockRuleTest extends RuleTst {

View File

@ -5,8 +5,6 @@
*/
package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.rules.EmptyFinallyBlockRule;
public class EmptyFinallyBlockRuleTest extends RuleTst {

View File

@ -5,8 +5,6 @@
*/
package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.rules.EmptyIfStmtRule;
public class EmptyIfStmtRuleTest extends RuleTst {

View File

@ -7,7 +7,6 @@ package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.rules.EmptyCatchBlockRule;
import net.sourceforge.pmd.rules.EmptyTryBlockRule;
public class EmptyTryBlockRuleTest extends RuleTst {

View File

@ -5,8 +5,8 @@
*/
package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.rules.EmptyWhileStmtRule;
public class EmptyWhileStmtRuleTest extends RuleTst {

Some files were not shown because too many files have changed in this diff Show More