Removed JDK 1.4 dependency (bug 876570)

This commit is contained in:
Rick Giles 2004-01-14 17:26:19 +00:00
parent 384b21e735
commit d28061d9f2
2 changed files with 10 additions and 3 deletions

View File

@ -127,6 +127,9 @@
<li class="body">Fixed inconsistent handling of NLOW (new
line on wrap) option by LeftCurly check. (bug 866501)</li>
<li class="body">JDK 1.4 classes used by usage checks.
(bug 876570)</li>
</ul>
<p class="body">

View File

@ -21,7 +21,6 @@ package com.puppycrawl.tools.checkstyle.checks.usage.transmogrify;
import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
@ -40,8 +39,13 @@ public final class ASTManager
/** singleton */
private static final ASTManager INSTANCE = new ASTManager();
/** maps DetailASTs to SymTabASTs. */
private Map mMap = new IdentityHashMap();
/**
* Maps DetailASTs to SymTabASTs.
* A HashMap is acceptable provided DetailAST method hashCode() returns
* distinct integers for distinct objects.
* If not, a structure such as IdentityHashMap must be employed.
*/
private Map mMap = new HashMap();
/** root with subtrees for a set of files */
private SymTabAST mCompleteTree = null;