@Test public void testFlattenNullProperties() throws Exception { final List<String> expectedResult = newArrayList("booleanProperty", TRUE.toString(), "intProperty", "1", "stringProperty", "null"); final Bean bean = new Bean(1, true, null); assertEquals(expectedResult, flattenProperties(bean, Bean.class)); }
public static List<String> flattenProperties(final Object target, final Class<?> clazz) { return flattenPropeties(target, clazz, "class"); }
ReflectUtil { public static List<String> flattenProperties(final Object target, final Class<?> clazz) { return flattenPropeties(target, clazz, "class"); } }
ReflectUtil { public static List<String> flattenProperties(final Object target, final Class<?> clazz) { return flattenPropeties(target, clazz, "class"); }  }
ReflectUtil { public static List<String> flattenProperties(final Object target, final Class<?> clazz) { return flattenPropeties(target, clazz, "class"); }  static Pair<Class<?>, Field> getAnyField(final Class<?> clazz, final String fieldName); static Set<Class<?>> getClassesWithAnnotation(final Class<? extends Annotation> annotation, final String[] packageNames); static boolean isCmdClassAsync(final Class<?> cmdClass, final Class<?>[] searchClasses); static List<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass); static Set<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?>[] excludeClasses); static List<String> flattenProperties(final Object target, final Class<?> clazz); static List<String> flattenPropeties(final Object target, final Class<?> clazz, final String... excludedProperties); static String getEntityName(final Class clz); }
ReflectUtil { public static List<String> flattenProperties(final Object target, final Class<?> clazz) { return flattenPropeties(target, clazz, "class"); }  static Pair<Class<?>, Field> getAnyField(final Class<?> clazz, final String fieldName); static Set<Class<?>> getClassesWithAnnotation(final Class<? extends Annotation> annotation, final String[] packageNames); static boolean isCmdClassAsync(final Class<?> cmdClass, final Class<?>[] searchClasses); static List<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass); static Set<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?>[] excludeClasses); static List<String> flattenProperties(final Object target, final Class<?> clazz); static List<String> flattenPropeties(final Object target, final Class<?> clazz, final String... excludedProperties); static String getEntityName(final Class clz);  }