@@ -56,13 +56,13 @@ public class {{Camel .Interface.Name}}JniClient extends Abstract{{Camel .Interfa
5656 public { {javaReturn " " .Return} } { {camel .Name} }({ {javaParams " " .Params} })
5757 {
5858 Log.v(TAG, " Blocking call{{camel .Name}} - should not be used " );
59- return mMessengerClient.{{camel .Name} }({ {javaVars .Params} });
59+ {{ if not .Return.IsVoid } } return{ { end } } mMessengerClient.{ {camel .Name} }({ {javaVars .Params} });
6060 }
6161
62- public void { {camel .Name} }Async(String callId, { {javaParams " " .Params} }){
62+ public void { {camel .Name} }Async(String callId{ { if len .Params } } , { {javaParams " " .Params} } { {end } }){
6363 Log.v(TAG, " non blocking call {{camel .Name}} " );
6464 mMessengerClient.{{camel .Name} }Async({ {javaVars .Params } }).thenAccept(i -> {
65- nativeOn{{Camel .Name} }Result(i, callId);});
65+ nativeOn{{Camel .Name} }Result({ { if not .Return.IsVoid } } i, { {end } } callId);});
6666 }
6767
6868 //Should not be called directly, use { {camel .Name} }Async(String callId, { {javaParams " " .Params} })
@@ -134,7 +134,7 @@ public class {{Camel .Interface.Name}}JniClient extends Abstract{{Camel .Interfa
134134 private native void nativeOn{ {Camel .Name} }({ {javaParams " " .Params } });
135135 { {- end } }
136136 { {- range .Interface.Operations } }
137- private native void nativeOn{ {Camel .Name} }Result({ {javaReturn " " .Return} } result, String callId);
137+ private native void nativeOn{ {Camel .Name} }Result({ {if not .Return.IsVoid } } { { javaReturn " " .Return} } result, { {end } } String callId);
138138 { {- end } }
139139 private native void nativeIsReady(boolean isReady);
140140}
0 commit comments