@SuppressWarnings("unchecked") private BeanInstance(T instance) { this.type = (Class<T>) instance.getClass(); this.instance = instance; List<Field> fields = findFields(type); fieldAnnotations = findFieldsAnnotations(fields); }
@SuppressWarnings("unchecked") private BeanInstance(T instance) { this.type = (Class<T>) instance.getClass(); this.instance = instance; List<Field> fields = findFields(type); fieldAnnotations = findFieldsAnnotations(fields); }