Cleaned up imports

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1461 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-02-21 16:37:09 +00:00
parent d2c8e91fbc
commit 1c6ec0d933
2 changed files with 22 additions and 6 deletions

View File

@ -24,8 +24,8 @@ import net.sourceforge.pmd.ast.AccessNode;
import net.sourceforge.pmd.ast.Node;
import net.sourceforge.pmd.ast.SimpleNode;
import java.util.Collections;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;

View File

@ -5,18 +5,34 @@
*/
package net.sourceforge.pmd.rules;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.ast.*;
import java.util.*;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.AbstractRule;
import net.sourceforge.pmd.ast.ASTAssignmentOperator;
import net.sourceforge.pmd.ast.ASTIfStatement;
import net.sourceforge.pmd.ast.ASTInterfaceDeclaration;
import net.sourceforge.pmd.ast.ASTLiteral;
import net.sourceforge.pmd.ast.ASTMethodDeclaration;
import net.sourceforge.pmd.ast.ASTName;
import net.sourceforge.pmd.ast.ASTNullLiteral;
import net.sourceforge.pmd.ast.ASTPrimaryExpression;
import net.sourceforge.pmd.ast.ASTPrimaryPrefix;
import net.sourceforge.pmd.ast.ASTResultType;
import net.sourceforge.pmd.ast.ASTReturnStatement;
import net.sourceforge.pmd.ast.ASTStatementExpression;
import net.sourceforge.pmd.ast.ASTSynchronizedStatement;
import net.sourceforge.pmd.ast.ASTType;
import net.sourceforge.pmd.ast.Node;
import java.util.ArrayList;
import java.util.List;
/**
* Very very specific check for double checked locking.
*
* @author CL Gilbert (dnoyeb@users.sourceforge.net)
*/
public class DoubleCheckedLockingRule extends net.sourceforge.pmd.AbstractRule implements Rule {
public class DoubleCheckedLockingRule extends AbstractRule implements Rule {
public Object visit(ASTInterfaceDeclaration node, Object data){
return data; // skip interfaces