Skip to content

Commit 1e7a15a

Browse files
committed
PW-2291: change to Integer
1 parent 1df3b99 commit 1e7a15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/adyen/httpclient/HttpURLConnectionClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private String doPostRequest(HttpURLConnection httpConnection, String requestBod
237237
outputStream.flush();
238238

239239
int responseCode = httpConnection.getResponseCode();
240-
int[] resultOKHttpStatusCodes = {HttpURLConnection.HTTP_OK, HttpURLConnection.HTTP_ACCEPTED, HttpURLConnection.HTTP_NO_CONTENT, HttpURLConnection.HTTP_CREATED};
240+
Integer[] resultOKHttpStatusCodes = {HttpURLConnection.HTTP_OK, HttpURLConnection.HTTP_ACCEPTED, HttpURLConnection.HTTP_NO_CONTENT, HttpURLConnection.HTTP_CREATED};
241241
if (!Arrays.asList(resultOKHttpStatusCodes).contains(responseCode)) {
242242
//Read the response from the error stream
243243
if (httpConnection.getErrorStream() != null) {

0 commit comments

Comments
 (0)