[jboss-cvs] JBossAS SVN: r95125 - projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/repository/plugins.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 19 12:20:56 EDT 2009
Author: alesj
Date: 2009-10-19 12:20:55 -0400 (Mon, 19 Oct 2009)
New Revision: 95125
Modified:
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/repository/plugins/GenericAnnotationResourceVisitor.java
Log:
Remove ct.
Modified: projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/repository/plugins/GenericAnnotationResourceVisitor.java
===================================================================
--- projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/repository/plugins/GenericAnnotationResourceVisitor.java 2009-10-19 16:17:35 UTC (rev 95124)
+++ projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/repository/plugins/GenericAnnotationResourceVisitor.java 2009-10-19 16:20:55 UTC (rev 95125)
@@ -72,7 +72,7 @@
try
{
List<CommitElement> commit = createCommitList();
- handleCtClass(ctClass, commit);
+ handleClass(ctClass, commit);
if (commit.isEmpty() == false)
{
for (CommitElement ce : commit)
@@ -123,14 +123,13 @@
}
/**
- * Handle CtClass for annotations.
+ * Handle class adapter for annotations.
*
- * @param ctClass the ct class instance
+ * @param ctClass the class adapter instance
* @param commit the commit list
- * @throws ClassNotFoundException for any annotations lookup problems
- * @throws javassist.NotFoundException for any annotations lookup problems
+ * @throws Exception for any annotations lookup problems
*/
- protected void handleCtClass(ClassAdapter ctClass, List<CommitElement> commit) throws Exception
+ protected void handleClass(ClassAdapter ctClass, List<CommitElement> commit) throws Exception
{
if (isRelevant(ctClass) == false)
return;
@@ -156,9 +155,9 @@
Object[] annotations = forceAnnotations ? ctClass.getAnnotations() : ctClass.getAvailableAnnotations();
handleAnnotations(ElementType.TYPE, (Signature)null, annotations, className, commit);
- handleCtMembers(ElementType.CONSTRUCTOR, ctClass.getDeclaredConstructors(), className, commit);
- handleCtMembers(ElementType.METHOD, ctClass.getDeclaredMethods(), className, commit);
- handleCtMembers(ElementType.FIELD, ctClass.getDeclaredFields(), className, commit);
+ handleMembers(ElementType.CONSTRUCTOR, ctClass.getDeclaredConstructors(), className, commit);
+ handleMembers(ElementType.METHOD, ctClass.getDeclaredMethods(), className, commit);
+ handleMembers(ElementType.FIELD, ctClass.getDeclaredFields(), className, commit);
if (checkSuper)
{
@@ -169,16 +168,16 @@
if (interfaces != null && interfaces.length > 0)
{
for (ClassAdapter intf : interfaces)
- handleCtClass(intf, commit);
+ handleClass(intf, commit);
}
}
// super class
- handleCtClass(ctClass.getSuperclass(), commit);
+ handleClass(ctClass.getSuperclass(), commit);
}
}
/**
- * Handle CtMembers for annotations.
+ * Handle members for annotations.
*
* @param type where we found the annotations
* @param members the member instances
@@ -186,7 +185,7 @@
* @param commit the commit list
* @throws Exception for any annotations lookup problems
*/
- protected void handleCtMembers(ElementType type, MemberAdapter[] members, String className, List<CommitElement> commit) throws Exception
+ protected void handleMembers(ElementType type, MemberAdapter[] members, String className, List<CommitElement> commit) throws Exception
{
if (members != null && members.length > 0)
{
More information about the jboss-cvs-commits
mailing list