aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClass.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-06-08 13:32:10 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-06-08 13:32:10 +0000
commit73969fa11a7ed8a4b62919d54f2e44d90812d029 (patch)
tree47bc044b91f2e9a2d2f8f7c442ec3bfcd880ecf3 /src/main/javassist/CtClass.java
parenta318d5d7d83f23e6c159e0d9ffb3e0d49c83fad3 (diff)
downloadjavassist-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/CtClass.java')
-rw-r--r--src/main/javassist/CtClass.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index 62616c49..5fdd3495 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -52,7 +52,7 @@ public abstract class CtClass {
/**
* The version number of this release.
*/
- public static final String version = "3.6.0BETA";
+ public static final String version = "3.6.0beta2";
/**
* Prints the version number and the copyright notice.
@@ -1126,7 +1126,8 @@ public abstract class CtClass {
* save memory consumption.
*
* <p>If <code>ClassPool.doPruning</code> is true, the automatic pruning
- * is on by default. Otherwise, it is off.
+ * is on by default. Otherwise, it is off. The default value of
+ * <code>ClassPool.doPruning</code> is false.
*
* @param stop disallow pruning if true. Otherwise, allow.
* @return the previous status of pruning. true if pruning is already stopped.
@@ -1150,15 +1151,22 @@ public abstract class CtClass {
* are still accessible.
*
* <p><code>toBytecode()</code>, <code>writeFile()</code>, and
- * <code>toClass()</code> internally call this method.
+ * <code>toClass()</code> internally call this method if
+ * automatic pruning is on.
+ *
+ * <p>According to some experiments, pruning does not really reduce
+ * memory consumption. Only about 20%. Since pruning takes time,
+ * it might not pay off. So the automatic pruning is off by default.
+ *
+ * @see #stopPruning(boolean)
+ * @see #detach()
+ * @see ClassPool#doPruning
*
* @see #toBytecode()
* @see #toClass()
* @see #writeFile()
* @see #instrument(CodeConverter)
* @see #instrument(ExprEditor)
- *
- * @see #stopPruning(boolean)
*/
public void prune() {}