From c0ef8b4eb5f382f5fb801b8665b189607d34a48b Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Tue, 30 Jul 2002 19:41:50 +0000 Subject: [PATCH] fixing violations of pnd rules git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@556 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/src/net/sourceforge/pmd/Namespace.java | 1 - pmd/src/net/sourceforge/pmd/SymbolTable.java | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pmd/src/net/sourceforge/pmd/Namespace.java b/pmd/src/net/sourceforge/pmd/Namespace.java index 94f3658bb9..d0fc9f01ba 100644 --- a/pmd/src/net/sourceforge/pmd/Namespace.java +++ b/pmd/src/net/sourceforge/pmd/Namespace.java @@ -36,7 +36,6 @@ import java.util.Stack; * That way the scopes work out nicely and inner classes can be nested arbitrarily deep. */ public class Namespace { -private int x; private Stack tables = new Stack(); public void addTable() { diff --git a/pmd/src/net/sourceforge/pmd/SymbolTable.java b/pmd/src/net/sourceforge/pmd/SymbolTable.java index b66c546b85..b6b8590505 100644 --- a/pmd/src/net/sourceforge/pmd/SymbolTable.java +++ b/pmd/src/net/sourceforge/pmd/SymbolTable.java @@ -5,15 +5,12 @@ */ package net.sourceforge.pmd; -import java.util.HashMap; -import java.util.List; -import java.util.ArrayList; -import java.util.Iterator; +import java.util.*; public class SymbolTable { private SymbolTable parent; - private HashMap usageCounts = new HashMap(); + private Map usageCounts = new HashMap(); private static final Integer ZERO = new Integer(0); private static final Integer ONE = new Integer(1);