Author: alessio.soldano(a)jboss.com
Date: 2013-02-24 13:23:09 -0500 (Sun, 24 Feb 2013)
New Revision: 529
Modified:
core/trunk/core/src/main/java/org/jboss/wise/core/utils/ReflectionUtils.java
Log:
[WISE-197] ReflectionUtils::getAllFields should skip outer class reference for inner
classes
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-02-24
18:20:51 UTC (rev 528)
+++
core/trunk/core/src/main/java/org/jboss/wise/core/utils/ReflectionUtils.java 2013-02-24
18:23:09 UTC (rev 529)
@@ -44,7 +44,7 @@
public static List<Field> getAllFields( Class<?> cl ) {
List<Field> list = new LinkedList<Field>();
for (Field field : cl.getDeclaredFields()) {
- if (!"serialVersionUID".equals(field.getName())) {
+ if (!"serialVersionUID".equals(field.getName()) &&
!field.getName().startsWith("this$")) {
list.add(field);
}
}
Show replies by date