Skip to content

Commit 641bb58

Browse files
committed
- Removing unwanted changes
1 parent f101149 commit 641bb58

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/main/java/Invokers/ApiClient.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import java.util.regex.Matcher;
4242
import java.util.regex.Pattern;
4343
import javax.net.ssl.*;
44-
4544
import com.google.gson.Gson;
4645
import org.apache.logging.log4j.Logger;
4746
import com.cybersource.authsdk.core.Authorization;
@@ -267,6 +266,8 @@ public Request authenticate(Route route, Response response) throws IOException {
267266
}
268267

269268
this.merchantConfig = merchantConfig;
269+
// RetryInterceptor.retryDelay = merchantConfig.getRetryDelay();
270+
// RetryInterceptor.retryEnabled = merchantConfig.isRetryEnabled();
270271
}
271272

272273
/**
@@ -1286,12 +1287,12 @@ public <T> T handleResponse(Response response, Type returnType) throws ApiExcept
12861287
public Call buildCall(String path, String method, List<Pair> queryParams, Object body,
12871288
Map<String, String> headerParams, Map<String, Object> formParams, String[] authNames,
12881289
ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
1289-
callAuthenticationHeader(method, path, body, queryParams);
1290+
callAuthenticationHeader(method, path, body, queryParams);
12901291

1291-
if(merchantConfig.getEnableClientCert())
1292-
{
1293-
addClientCertToKeyStore();
1294-
}
1292+
if(merchantConfig.getEnableClientCert())
1293+
{
1294+
addClientCertToKeyStore();
1295+
}
12951296

12961297
if (acceptHeader != null && !acceptHeader.isEmpty()) {
12971298
String defaultAcceptHeader = "," + headerParams.get("Accept");
@@ -1439,7 +1440,6 @@ public Request buildRequest(String path, String method, List<Pair> queryParams,
14391440
Gson gson = new Gson();
14401441
String jsonString = json.serialize(body);
14411442
formParams = gson.fromJson(jsonString, HashMap.class);
1442-
while (formParams.values().remove(null));
14431443
reqBody = buildRequestBodyFormEncoding(formParams);
14441444
} else if ("multipart/form-data".equals(contentType)) {
14451445
reqBody = buildRequestBodyMultipart(formParams);
@@ -1667,7 +1667,6 @@ public java.security.cert.X509Certificate[] getAcceptedIssuers() {
16671667
catch (IOException | CertificateException | NoSuchAlgorithmException | KeyStoreException | KeyManagementException | UnrecoverableKeyException ex) {
16681668

16691669
}
1670-
16711670
}
16721671

16731672
/**

0 commit comments

Comments
 (0)