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