Author: alessio.soldano(a)jboss.com
Date: 2013-07-03 17:45:50 -0400 (Wed, 03 Jul 2013)
New Revision: 577
Modified:
core/trunk/core/src/main/java/org/jboss/wise/core/utils/ReflectionUtils.java
Log:
[WISE-206] Fixing ReflectionUtils.getGetter()
Modified: core/trunk/core/src/main/java/org/jboss/wise/core/utils/ReflectionUtils.java
===================================================================
---
core/trunk/core/src/main/java/org/jboss/wise/core/utils/ReflectionUtils.java 2013-07-03
21:41:31 UTC (rev 576)
+++
core/trunk/core/src/main/java/org/jboss/wise/core/utils/ReflectionUtils.java 2013-07-03
21:45:50 UTC (rev 577)
@@ -101,18 +101,12 @@
* @return String
*/
public static String getGetter( Field field ) {
- XmlElement ann = field.getAnnotation(XmlElement.class);
Class cl = field.getType();
if (cl.isPrimitive()) {
cl = JavaUtils.getWrapperType(cl);
}
- String cap;
- if (ann == null || ann.name() == null || ann.name().startsWith("##"))
{
- cap = JavaUtils.capitalize(field.getName());
- } else {
- cap = JavaUtils.capitalize(ann.name());
- }
+ String cap = JavaUtils.capitalize(field.getName());
if (cl.getName().equalsIgnoreCase("java.lang.Boolean")) {
return "is" + cap;
} else {
Show replies by date