Skip to content

Commit 88e0f35

Browse files
Do the analyse of path parameter before HttpEntity generation to avoid a path parameter considered as the entity
1 parent bcd015c commit 88e0f35

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/rest

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/rest/MethodProcessor.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ protected void generateRestTemplateCallBlock(MethodProcessorHolder methodHolder)
9898

9999
restCall.arg(httpMethod.staticRef(restMethodInCapitalLetters));
100100

101+
JVar hashMapVar = generateHashMapVar(methodHolder);
102+
101103
restCall = addHttpEntityVar(restCall, methodHolder);
102104
restCall = addResponseEntityArg(restCall, methodHolder);
103105

104-
JVar hashMapVar = generateHashMapVar(methodHolder);
105106
if (hashMapVar != null) {
106107
restCall.arg(hashMapVar);
107108
}

0 commit comments

Comments
 (0)