Skip to content

Commit d54c7eb

Browse files
author
Brian Melton
committed
Formatting cleanup
1 parent 8dbe2ff commit d54c7eb

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Templates/Android/generated/BaseMethodRequestBuilder.java.tt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ methods.AddRange(c.AsOdcmMethod().Overloads);
2323
*/
2424
public <#=BaseTypeRequestBuilder(c)#>(final String requestUrl, final <#=IBaseClientType()#> client, final List<Option> options<#=MethodParametersSignature(c.AsOdcmMethod())#>) {
2525
super(requestUrl, client, options);
26-
<# foreach (var p in method.Parameters) { #>
27-
<# if (isPost) { #>
28-
mBodyParams.put("<#=ParamName(p)#>", <#=ParamName(p)#>);
29-
<# } else { #>
30-
mFunctionOptions.add(new FunctionOption("<#=ParamName(p)#>", <#=ParamName(p)#>));
31-
<# } #>
32-
<# } #>
26+
<# foreach (var p in method.Parameters) { #>
27+
<# if (isPost) { #>
28+
mBodyParams.put("<#=ParamName(p)#>", <#=ParamName(p)#>);
29+
<# } else { #>
30+
mFunctionOptions.add(new FunctionOption("<#=ParamName(p)#>", <#=ParamName(p)#>));
31+
<# } #>
32+
<# } #>
3333
}
3434
<# } #>
3535

@@ -50,23 +50,23 @@ methods.AddRange(c.AsOdcmMethod().Overloads);
5050
*/
5151
public <#=ITypeRequest(c)#> buildRequest(final List<Option> options) {
5252
<#=TypeRequest(c)#> request = new <#=TypeRequest(c)#>(
53-
getRequestUrl(),
54-
getClient(),
55-
options
53+
getRequestUrl(),
54+
getClient(),
55+
options
5656
);
5757

5858
<# foreach (var p in c.AsOdcmMethod().Parameters) { #>
59-
<# if (isPost) { #>
60-
if (hasParameter("<#=ParamName(p)#>")) {
59+
<# if (isPost) { #>
60+
if (hasParameter("<#=ParamName(p)#>")) {
6161
request.mBody.<#=ParamName(p)#> = getParameter("<#=ParamName(p)#>");
6262
}
63-
<# } else { #>
63+
<# } else { #>
6464
for (FunctionOption option : mFunctionOptions) {
6565
request.addFunctionOption(option);
6666
}
67-
<# } #>
67+
<# } #>
6868
<# } #>
6969

70-
return request;
70+
return request;
7171
}
7272
}

0 commit comments

Comments
 (0)