From: chiba Date: Thu, 12 Jul 2007 09:52:24 +0000 (+0000) Subject: made CtClass#freeze() public. X-Git-Tag: rel_3_17_1_ga~245 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8941069e00fb659dc71429d2abef73701680848c;p=javassist.git made CtClass#freeze() public. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@394 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- 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()) {