Skip to content

Commit 731d54c

Browse files
author
mcxiaoke
committed
fix conflicts, merge upstream
2 parents 0bb1de0 + b1a9085 commit 731d54c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/com/android/volley/toolbox/JsonArrayRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public JsonArrayRequest(String url, JSONObject jsonRequest, Listener<JSONArray>
122122
this(jsonRequest == null ? Method.GET : Method.POST, url, jsonRequest,
123123
listener, errorListener);
124124
}
125-
125+
126126
@Override
127127
protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) {
128128
try {

src/test/java/com/android/volley/toolbox/JsonRequestTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.android.volley.toolbox;
1818

1919
import com.android.volley.Response;
20+
import org.json.JSONArray;
2021
import org.json.JSONObject;
2122
import org.junit.Test;
2223
import org.junit.runner.RunWith;
@@ -37,6 +38,8 @@ public void publicMethods() throws Exception {
3738

3839
assertNotNull(JsonArrayRequest.class.getConstructor(String.class,
3940
Response.Listener.class, Response.ErrorListener.class));
41+
assertNotNull(JsonArrayRequest.class.getConstructor(int.class, String.class, JSONArray.class,
42+
Response.Listener.class, Response.ErrorListener.class));
4043

4144
assertNotNull(JsonObjectRequest.class.getConstructor(String.class, JSONObject.class,
4245
Response.Listener.class, Response.ErrorListener.class));

0 commit comments

Comments
 (0)