@@ -74,14 +74,14 @@ public static FlowForm fromMap(Map<String, Object> map) {
7474 fieldMeta .setPlaceholder ((String ) field .get ("placeholder" ));
7575 fieldMeta .setTooltip ((String ) field .get ("tooltip" ));
7676 fieldMeta .setHelp ((String ) field .get ("help" ));
77- List <Map <String , Object >> attributes = (List <Map <String , Object >>)field .get ("attributes" );
78- if (attributes != null ) {
77+ List <Map <String , Object >> attributes = (List <Map <String , Object >>) field .get ("attributes" );
78+ if (attributes != null ) {
7979 List <FieldAttribute > attributeList = new ArrayList <>();
80- for (Map <String , Object > attribute : attributes ){
80+ for (Map <String , Object > attribute : attributes ) {
8181 FieldAttribute fieldAttribute = new FieldAttribute ();
8282 fieldAttribute .setKey ((String ) attribute .get ("key" ));
8383 fieldAttribute .setLabel ((String ) attribute .get ("label" ));
84- fieldAttribute .setValue (( String ) attribute .get ("value" ));
84+ fieldAttribute .setValue (attribute .get ("value" ));
8585 attributeList .add (fieldAttribute );
8686 }
8787 fieldMeta .setAttributes (attributeList );
@@ -124,15 +124,16 @@ public FormField getField(String fieldCode) {
124124
125125 /**
126126 * 获取表单字段
127- * @param formCode 表单code
127+ *
128+ * @param formCode 表单code
128129 * @param fieldCode 字段code
129130 */
130- public FormField getField (String formCode ,String fieldCode ){
131- if (this .code .equals (formCode )){
131+ public FormField getField (String formCode , String fieldCode ) {
132+ if (this .code .equals (formCode )) {
132133 return this .getField (fieldCode );
133- }else {
134- for (FlowForm subForm : subForms ){
135- if (subForm .getCode ().equals (formCode )){
134+ } else {
135+ for (FlowForm subForm : subForms ) {
136+ if (subForm .getCode ().equals (formCode )) {
136137 return subForm .getField (fieldCode );
137138 }
138139 }
@@ -156,9 +157,9 @@ private void initFormFieldDataTypes(FlowForm form, Map<String, DataType> types)
156157 public Map <String , DataType > loadAllFieldDataTypeMaps () {
157158 Map <String , DataType > types = new HashMap <>();
158159 List <FlowForm > forms ;
159- if (this .subForms == null || this .subForms .isEmpty ()){
160+ if (this .subForms == null || this .subForms .isEmpty ()) {
160161 forms = new ArrayList <>();
161- }else {
162+ } else {
162163 forms = new ArrayList <>(this .getSubForms ());
163164 }
164165 forms .add (this );
0 commit comments