diff --git a/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java b/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java index 5300c55..b2bd69a 100644 --- a/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java +++ b/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java @@ -602,7 +602,7 @@ if (ptype.getType().toString().equals("List")) { var typeArg = (Type) ptype.typeArguments().get(0); code += "for (" + typeArg + " i: this.value) {" + System.getProperty("line.separator"); - code += "\t form.param(\"" + srcValue + "\", new ObjectMapper().writeValueAsString(i);" + code += "\t form.param(\"" + srcValue + "\", new ObjectMapper().writeValueAsString(i));" + System.getProperty("line.separator"); code += "}" + System.getProperty("line.separator"); } @@ -711,8 +711,8 @@ initializer = " Integer.parseInt(str);"; } } - result += argType.toString() +" i =" + initializer; - result += "for(String str: "+srcNames[i]+"_json ){ " + System.getProperty("line.separator"); + result += "for(String str: "+srcNames[i]+"_json ){ " + System.getProperty("line.separator"); + result += convertType(argType) +" i =" + initializer + System.getProperty("line.separator"); result += srcNames[i].toString()+".add("; // String value, String tmpValue, Type type result += geterateParameterizedTypeStatements("i", "i", argType);