From 8941069e00fb659dc71429d2abef73701680848c Mon Sep 17 00:00:00 2001 From: chiba Date: Thu, 12 Jul 2007 09:52:24 +0000 Subject: [PATCH] made CtClass#freeze() public. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@394 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/CtClass.java | 9 ++++++++- src/main/javassist/CtClassType.java | 2 +- 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()) { -- 2.39.5