summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-07-12 09:52:24 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-07-12 09:52:24 +0000
commit8941069e00fb659dc71429d2abef73701680848c (patch)
tree48b1e9b29def1c6fa5d8da86d147b3da7650a9b1
parentd133f96da4ac7bb312ddddbc00cbcd19e94cd412 (diff)
downloadjavassist-8941069e00fb659dc71429d2abef73701680848c.tar.gz
javassist-8941069e00fb659dc71429d2abef73701680848c.zip
made CtClass#freeze() public.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@394 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r--src/main/javassist/CtClass.java9
-rw-r--r--src/main/javassist/CtClassType.java2
2 files changed, 9 insertions, 2 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index 42ae5040..7d4b962b 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -263,7 +263,14 @@ public abstract class CtClass {
*/
public boolean isFrozen() { return true; }
- void freeze() {}
+ /**
+ * Makes the class frozen.
+ *
+ * @see #isFrozen()
+ * @see #defrost()
+ * @since 3.6
+ */
+ public void freeze() {}
/* Note: this method is overridden by CtClassType
*/
diff --git a/src/main/javassist/CtClassType.java b/src/main/javassist/CtClassType.java
index 859b3af3..d8182d10 100644
--- a/src/main/javassist/CtClassType.java
+++ b/src/main/javassist/CtClassType.java
@@ -275,7 +275,7 @@ class CtClassType extends CtClass {
public boolean isFrozen() { return wasFrozen; }
- void freeze() { wasFrozen = true; }
+ public void freeze() { wasFrozen = true; }
void checkModify() throws RuntimeException {
if (isFrozen()) {