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) {
6868 */
6969 public static String getFieldValueAsString (final Object beanObj , final String fieldName ) throws Exception {
7070 // Property Descriptor
71- final PropertyDescriptor pd = new PropertyDescriptor ( fieldName , beanObj . getClass () );
71+ final PropertyDescriptor pd = PROP_UTILS_BEAN . getPropertyDescriptor ( beanObj , fieldName );
7272 final Method getterMtd = pd .getReadMethod ();
7373
7474 final Object value = getterMtd .invoke (beanObj );
Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ public String getId() {
6767 return id ;
6868 }
6969
70- public void setId (String id ) {
70+ public Employee setId (String id ) {
7171 this .id = id ;
72+ return this ;
7273 }
7374
7475 @ SheetColumn ("Name" )
You can’t perform that action at this time.
0 commit comments