Skip to content

Commit f527718

Browse files
committed
Added minor formatting fix to template
1 parent 71583ad commit f527718

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

generator/cybersource-java-template/libraries/okhttp-gson/ApiClient.mustache

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ public class ApiClient {
234234
}
235235

236236
additionalSettings.setCustomRetryOnConnectionFailure(true);
237-
additionalSettings.setCustomRetryInterceptor(new RetryInterceptor(this.apiRequestMetrics));
238-
additionalSettings.setCustomNetworkEventListener(new NetworkEventListener(this.getNewRandomId(), System.nanoTime()));
237+
additionalSettings.setCustomRetryInterceptor(new RetryInterceptor(this.apiRequestMetrics));
238+
additionalSettings.setCustomNetworkEventListener(new NetworkEventListener(this.getNewRandomId(), System.nanoTime()));
239239

240240
this.merchantConfig = merchantConfig;
241241
}
@@ -1245,11 +1245,11 @@ public class ApiClient {
12451245
Request request = buildRequest(path, method, queryParams, requestbody, headerParams, formParams, authNames,
12461246
progressRequestListener);
12471247
try {
1248-
httpClient = HttpClientFactory.getHttpClient(this.merchantConfig, this.additionalSettings);
1249-
} catch (ConfigException e) {
1250-
throw e;
1251-
}
1252-
return httpClient.newCall(request);
1248+
httpClient = HttpClientFactory.getHttpClient(this.merchantConfig, this.additionalSettings);
1249+
} catch (ConfigException e) {
1250+
throw e;
1251+
}
1252+
return httpClient.newCall(request);
12531253
}
12541254

12551255
private String getRequestContentSendOverNetwork(RequestBody requestBody) throws IOException {
@@ -1335,8 +1335,8 @@ public class ApiClient {
13351335
if (versionInfo != null && !versionInfo.isEmpty()) {
13361336
requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-" + versionInfo);
13371337
} else {
1338-
requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-VERSIONUNKNOWN");
1339-
}
1338+
requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-VERSIONUNKNOWN");
1339+
}
13401340

13411341
} catch (ConfigException | IOException e) {
13421342
logger.error(e.getMessage());
@@ -1596,8 +1596,8 @@ public class ApiClient {
15961596
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
15971597
return new java.security.cert.X509Certificate[] {};
15981598
}
1599-
}
1600-
};
1599+
}
1600+
};
16011601
16021602
KeyStore merchantKeyStore = KeyStore.getInstance("PKCS12", new BouncyCastleProvider());
16031603
FileInputStream file = new FileInputStream(
@@ -1611,7 +1611,7 @@ public class ApiClient {
16111611
SSLContext sslContext = SSLContext.getInstance("TLS");
16121612
sslContext.init(keyManagerFactory.getKeyManagers(), trustAllCerts, new SecureRandom());
16131613
additionalSettings.setCustomSSLSocketFactory(sslContext.getSocketFactory());
1614-
additionalSettings.setCustomX509TrustManager((X509TrustManager) trustAllCerts[0]);
1614+
additionalSettings.setCustomX509TrustManager((X509TrustManager) trustAllCerts[0]);
16151615
} catch (IOException | CertificateException | NoSuchAlgorithmException | KeyStoreException
16161616
| KeyManagementException | UnrecoverableKeyException ex) {
16171617

0 commit comments

Comments
 (0)