aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPoolTail.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2012-02-11 03:12:41 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2012-02-11 03:12:41 +0000
commit0564d29d853bb18655c35405c74a421e2e550cef (patch)
tree00807f83c18461432cc5ef800f697c961cedf6e9 /src/main/javassist/ClassPoolTail.java
parentb83522334f4abe2d9d3f83d0b6949fabd984cf75 (diff)
downloadjavassist-0564d29d853bb18655c35405c74a421e2e550cef.tar.gz
javassist-0564d29d853bb18655c35405c74a421e2e550cef.zip
fixed JASSIST-150
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@611 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPoolTail.java')
-rw-r--r--src/main/javassist/ClassPoolTail.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/javassist/ClassPoolTail.java b/src/main/javassist/ClassPoolTail.java
index 72470ed0..2fd952b7 100644
--- a/src/main/javassist/ClassPoolTail.java
+++ b/src/main/javassist/ClassPoolTail.java
@@ -178,11 +178,9 @@ final class JarClassPath implements ClassPath {
final class ClassPoolTail {
protected ClassPathList pathList;
- private Hashtable packages; // should be synchronized.
public ClassPoolTail() {
pathList = null;
- packages = new Hashtable();
}
public String toString() {
@@ -270,14 +268,6 @@ final class ClassPoolTail {
}
/**
- * You can record "System" so that java.lang.System can be quickly
- * found although "System" is not a package name.
- */
- public void recordInvalidClassName(String name) {
- packages.put(name, name);
- }
-
- /**
* This method does not close the output stream.
*/
void writeClassfile(String classname, OutputStream out)
@@ -325,9 +315,6 @@ final class ClassPoolTail {
InputStream openClassfile(String classname)
throws NotFoundException
{
- if (packages.get(classname) != null)
- return null; // not found
-
ClassPathList list = pathList;
InputStream ins = null;
NotFoundException error = null;
@@ -361,9 +348,6 @@ final class ClassPoolTail {
* @return null if the class file could not be found.
*/
public URL find(String classname) {
- if (packages.get(classname) != null)
- return null;
-
ClassPathList list = pathList;
URL url = null;
while (list != null) {