File tree Expand file tree Collapse file tree
src/test/java/com/xwintop/xJavaFxTool/javafx/tool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .xwintop .xJavaFxTool .javafx .tool ;
22
33import com .xwintop .xcore .util .StrUtil ;
4+ import java .lang .reflect .Field ;
45import org .apache .commons .lang3 .reflect .FieldUtils ;
56import org .junit .Test ;
67
7- import java .lang .reflect .Field ;
8-
98public class TableBeanTool {
109 @ Test
1110 public void buildTableBean (){
@@ -27,7 +26,7 @@ public void buildTableBean(){
2726 String typeName = field .getType ().getSimpleName ();
2827 String typeSimpleName = typeName .substring (6 , typeName .indexOf ("Property" ));
2928 String typeClassName = typeName .substring (6 );
30- String UpFieldName = StrUtil .fristToUpCase (fieldName );
29+ String UpFieldName = StrUtil .firstToUpCase (fieldName );
3130
3231 stringBuffer .append (typeSimpleName ).append (" " +fieldName +"," );
3332 stringBuffer2 .append ("this." +fieldName +" = new " +typeName +"(" +fieldName +");\n " );
You can’t perform that action at this time.
0 commit comments