diff --git a/android/README.md b/android/README.md index b623f780..fdf1327a 100644 --- a/android/README.md +++ b/android/README.md @@ -12,7 +12,7 @@ * [Use](#use) * [Asynchronous](#asynchronous) * [Batch](#batch) - * [Passing complex objects as argument](#passing-complex-objects-as-argument) + * [Non-primitive arguments](#non-primitive-arguments) * [OrderByComparator](#orderbycomparator) * [ServiceContext](#servicecontext) @@ -280,7 +280,7 @@ batch.setCallback(new BatchAsyncTaskCallback() { As you can see, the return type is always a `JSONArray`. -#### Passing complex objects as argument +#### Non-primitive arguments There are some special cases in which service methods arguments are not primitives. In these cases, you should use `JSONObjectWrapper`, for example: @@ -356,4 +356,4 @@ jsonObject.put("addGuestPermissions", true); JSONObjectWrapper serviceContext = new JSONObjectWrapper(jsonObject); ``` -For more examples, take a look at this test case: [ServiceContextTest.java](src/test/java/com/liferay/mobile/sdk/test/portal/ServiceContextTest.java). \ No newline at end of file +For more examples, take a look at this test case: [ServiceContextTest.java](src/test/java/com/liferay/mobile/sdk/test/portal/ServiceContextTest.java).