[jboss-cvs] JBossAS SVN: r75048 - projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 25 05:02:47 EDT 2008
Author: alesj
Date: 2008-06-25 05:02:47 -0400 (Wed, 25 Jun 2008)
New Revision: 75048
Modified:
projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/CommonAnnotationAdapter.java
Log:
No reason to exclude setter and getter if field is present on property.
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/CommonAnnotationAdapter.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/CommonAnnotationAdapter.java 2008-06-25 07:20:53 UTC (rev 75047)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/CommonAnnotationAdapter.java 2008-06-25 09:02:47 UTC (rev 75048)
@@ -253,11 +253,9 @@
else if (trace)
log.trace("No annotations for field " + field.getName());
}
- else
- {
- handleMethod(retrieval, handle, isApplyPhase, trace, visitedMethods, pi, pi.getSetter(), "setter");
- handleMethod(retrieval, handle, isApplyPhase, trace, visitedMethods, pi, pi.getGetter(), "getter");
- }
+ // apply setter and getter as well - if they exist
+ handleMethod(retrieval, handle, isApplyPhase, trace, visitedMethods, pi, pi.getSetter(), "setter");
+ handleMethod(retrieval, handle, isApplyPhase, trace, visitedMethods, pi, pi.getGetter(), "getter");
}
}
else if (trace)
More information about the jboss-cvs-commits
mailing list