FieldFinder class searches only in the current class, not in superclass.
List fieldList = new ArrayList();
fieldList.addAll(Arrays.asList(target.getClass().getDeclaredFields()));
fieldList.addAll(Arrays.asList(target.getClass().getSuperclass().getDeclaredFields()));
Field [] fields = new Field[fieldList.size()];
fieldList.toArray(fields);
FieldFinder class searches only in the current class, not in superclass.
List fieldList = new ArrayList();
fieldList.addAll(Arrays.asList(target.getClass().getDeclaredFields()));
fieldList.addAll(Arrays.asList(target.getClass().getSuperclass().getDeclaredFields()));
Field [] fields = new Field[fieldList.size()];
fieldList.toArray(fields);