From 1c6ec0d9331bb56a8b34e4ad49b49e60c3f42afe Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Fri, 21 Feb 2003 16:37:09 +0000 Subject: [PATCH] Cleaned up imports git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1461 51baf565-9d33-0410-a72c-fc3788e3496d --- ...ConstructorCallsOverridableMethodRule.java | 2 +- .../pmd/rules/DoubleCheckedLockingRule.java | 26 +++++++++++++++---- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/pmd/src/net/sourceforge/pmd/rules/ConstructorCallsOverridableMethodRule.java b/pmd/src/net/sourceforge/pmd/rules/ConstructorCallsOverridableMethodRule.java index 9bf0e8d8e9..1b37e21267 100644 --- a/pmd/src/net/sourceforge/pmd/rules/ConstructorCallsOverridableMethodRule.java +++ b/pmd/src/net/sourceforge/pmd/rules/ConstructorCallsOverridableMethodRule.java @@ -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; diff --git a/pmd/src/net/sourceforge/pmd/rules/DoubleCheckedLockingRule.java b/pmd/src/net/sourceforge/pmd/rules/DoubleCheckedLockingRule.java index ffc51b9d94..fcd26b272a 100644 --- a/pmd/src/net/sourceforge/pmd/rules/DoubleCheckedLockingRule.java +++ b/pmd/src/net/sourceforge/pmd/rules/DoubleCheckedLockingRule.java @@ -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