From 41bb82351ccedc78bcff9271453edb8e42c8a66d Mon Sep 17 00:00:00 2001 From: chiba Date: Tue, 21 Jun 2011 11:27:56 +0000 Subject: [PATCH] a minor bug fix git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@582 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/CtClass.java | 12 ++++++++++++ tutorial/tutorial.html | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index e805c201..b14ca983 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -532,6 +532,18 @@ public abstract class CtClass { return new Object[0]; } + /** + * Returns an array of nested classes declared in the class. + * Nested classes are inner classes, anonymous classes, local classes, + * and static nested classes. This simply calls getNestedClasses(). + * + * @see #getNestedClasses() + * @since 3.15 + */ + public CtClass[] getDeclaredClasses() throws NotFoundException { + return getNestedClasses(); + } + /** * Returns an array of nested classes declared in the class. * Nested classes are inner classes, anonymous classes, local classes, diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index d62743d0..dea83069 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -1044,7 +1044,9 @@ adds a new field hiddenValue to java.lang.String:

This program produces a file "./java/lang/String.class". -- 2.39.5