aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/android/volley/toolbox/JsonArrayRequest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/android/volley/toolbox/JsonArrayRequest.java')
-rw-r--r--src/main/java/com/android/volley/toolbox/JsonArrayRequest.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/com/android/volley/toolbox/JsonArrayRequest.java b/src/main/java/com/android/volley/toolbox/JsonArrayRequest.java
index 757c7f9..1abaec7 100644
--- a/src/main/java/com/android/volley/toolbox/JsonArrayRequest.java
+++ b/src/main/java/com/android/volley/toolbox/JsonArrayRequest.java
@@ -16,6 +16,7 @@
package com.android.volley.toolbox;
+import android.support.annotation.Nullable;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Response;
@@ -35,7 +36,8 @@ public class JsonArrayRequest extends JsonRequest<JSONArray> {
* @param listener Listener to receive the JSON response
* @param errorListener Error listener, or null to ignore errors.
*/
- public JsonArrayRequest(String url, Listener<JSONArray> listener, ErrorListener errorListener) {
+ public JsonArrayRequest(
+ String url, Listener<JSONArray> listener, @Nullable ErrorListener errorListener) {
super(Method.GET, url, null, listener, errorListener);
}
@@ -44,17 +46,17 @@ public class JsonArrayRequest extends JsonRequest<JSONArray> {
*
* @param method the HTTP method to use
* @param url URL to fetch the JSON from
- * @param jsonRequest A {@link JSONArray} to post with the request. Null is allowed and
- * indicates no parameters will be posted along with request.
+ * @param jsonRequest A {@link JSONArray} to post with the request. Null indicates no parameters
+ * will be posted along with request.
* @param listener Listener to receive the JSON response
* @param errorListener Error listener, or null to ignore errors.
*/
public JsonArrayRequest(
int method,
String url,
- JSONArray jsonRequest,
+ @Nullable JSONArray jsonRequest,
Listener<JSONArray> listener,
- ErrorListener errorListener) {
+ @Nullable ErrorListener errorListener) {
super(
method,
url,