public static Field [ ] getNonSyntheticFields ( final Class < ? > clazz ) { final List < Field > fieldList = new ArrayList <> ( ) ; addFields ( fieldList , clazz , true ) ; return fieldList . toArray ( new Field [ fieldList . size ( ) ] ) ; }
Gets non - synthetic fields of a class including private fields in super - classes .