File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/java/io/github/millij/poi/util
test/java/io/github/millij/bean Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public static String getFieldName(final Method method) {
68
68
*/
69
69
public static String getFieldValueAsString (final Object beanObj , final String fieldName ) throws Exception {
70
70
// Property Descriptor
71
- final PropertyDescriptor pd = new PropertyDescriptor ( fieldName , beanObj . getClass () );
71
+ final PropertyDescriptor pd = PROP_UTILS_BEAN . getPropertyDescriptor ( beanObj , fieldName );
72
72
final Method getterMtd = pd .getReadMethod ();
73
73
74
74
final Object value = getterMtd .invoke (beanObj );
Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ public String getId() {
67
67
return id ;
68
68
}
69
69
70
- public void setId (String id ) {
70
+ public Employee setId (String id ) {
71
71
this .id = id ;
72
+ return this ;
72
73
}
73
74
74
75
@ SheetColumn ("Name" )
You can’t perform that action at this time.
0 commit comments