summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()) {