From 18271be2ff63df7cb8da6a66e74428fa9d8fae9a Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 26 Nov 1998 12:39:08 +0000 Subject: [PATCH] classPath clean up git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@144 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/ImportHandler.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/jode/jode/decompiler/ImportHandler.java b/jode/jode/decompiler/ImportHandler.java index 90589d3..860c470 100644 --- a/jode/jode/decompiler/ImportHandler.java +++ b/jode/jode/decompiler/ImportHandler.java @@ -20,7 +20,6 @@ package jode; import java.util.*; import jode.bytecode.ClassInfo; -import jode.bytecode.SearchPath; public class JodeEnvironment { Hashtable imports; @@ -30,11 +29,9 @@ public class JodeEnvironment { String className; String pkg; - SearchPath classPath; JodeEnvironment(String path) { - classPath = new SearchPath(path); - ClassInfo.setClassPath(classPath); + ClassInfo.setClassPath(path); Type.setEnvironment(this); imports = new Hashtable(); /* java.lang is always imported */ @@ -66,8 +63,7 @@ public class JodeEnvironment { name = name.substring(pkgdelim); if (pkg.length() != 0) { - if (classPath.exists((pkg+name).replace('.', '/') - + ".class")) + if (ClassInfo.exists(pkg+name)) return true; } @@ -79,8 +75,7 @@ public class JodeEnvironment { importName = importName.substring (0, importName.length()-2); if (!importName.equals(pkgName)) { - if (classPath.exists(importName.replace('.', '/') - + ".class")) + if (ClassInfo.exists(importName)) return true; } }