aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPool.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-27 16:01:40 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-27 16:01:40 +0000
commitb25388461bd32f33f3a4a188b5eeae957cbb080d (patch)
treec343bff444b4914efe04bbfba3cb3405fd0064a1 /src/main/javassist/ClassPool.java
parent652e4675e7f227055fdd96ffa74cb00f126e9f70 (diff)
downloadjavassist-b25388461bd32f33f3a4a188b5eeae957cbb080d.tar.gz
javassist-b25388461bd32f33f3a4a188b5eeae957cbb080d.zip
added detach() in CtClass, which is necessary so that some people who
deal with a large number of classes can get better performance. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@95 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPool.java')
-rw-r--r--src/main/javassist/ClassPool.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index bc2a2d80..054b56e1 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -167,8 +167,8 @@ public class ClassPool {
* @see #getCached(String)
* @see #cacheCtClass(String,CtClass)
*/
- protected void removeCached(String classname) {
- classes.remove(classname);
+ protected CtClass removeCached(String classname) {
+ return (CtClass)classes.remove(classname);
}
/**