Revert "Fix byte array memory leak from MemoryBasedClassLoader"

This reverts commit 58b033d9fb.
This commit is contained in:
Alexander Udalov
2015-03-27 15:28:52 +03:00
parent dcfefb0847
commit 3f0541924f
3 changed files with 4 additions and 27 deletions
@@ -135,11 +135,7 @@ public class PathUtil {
@NotNull
public static File getResourcePathForClass(@NotNull Class aClass) {
String path = "/" + aClass.getName().replace('.', '/') + ".class";
String resourceRoot = PathManager.getResourceRoot(aClass, path);
if (resourceRoot == null) {
throw new IllegalStateException("Resource not found: " + path);
}
String resourceRoot = PathManager.getResourceRoot(aClass, "/" + aClass.getName().replace('.', '/') + ".class");
return new File(resourceRoot).getAbsoluteFile();
}