diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-06-08 13:32:10 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-06-08 13:32:10 +0000 |
commit | 73969fa11a7ed8a4b62919d54f2e44d90812d029 (patch) | |
tree | 47bc044b91f2e9a2d2f8f7c442ec3bfcd880ecf3 /src/main/javassist/CtMethod.java | |
parent | a318d5d7d83f23e6c159e0d9ffb3e0d49c83fad3 (diff) | |
download | javassist-73969fa11a7ed8a4b62919d54f2e44d90812d029.tar.gz javassist-73969fa11a7ed8a4b62919d54f2e44d90812d029.zip |
made automatic pruning off by default because I found that pruning does not really save memory (only 20%). I changed Javassist to compress a class file on memory after toBytecode().
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@383 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtMethod.java')
-rw-r--r-- | src/main/javassist/CtMethod.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/javassist/CtMethod.java b/src/main/javassist/CtMethod.java index 61c29713..158f21af 100644 --- a/src/main/javassist/CtMethod.java +++ b/src/main/javassist/CtMethod.java @@ -32,7 +32,6 @@ public final class CtMethod extends CtBehavior { CtMethod(MethodInfo minfo, CtClass declaring) { super(declaring, minfo); - next = null; cachedStringRep = null; } @@ -135,6 +134,14 @@ public final class CtMethod extends CtBehavior { return getStringRep().hashCode(); } + /** + * This method is invoked when setName() or replaceClassName() + * in CtClass is called. + */ + void nameReplaced() { + cachedStringRep = null; + } + /* This method is also called by CtClassType.getMethods0(). */ final String getStringRep() { |