Skip to content

Commit 2c9e956

Browse files
author
zxBCN Valeriu_Tuguran,Constantin (IT EDP) EXTERNAL
committed
Remove unused var.
1 parent 27682ee commit 2c9e956

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

api-project-component-v0/src/test/java/org/opendevstack/apiservice/project/facade/ComponentsFacadeTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ void testGetProjectComponent_whenNoComponentFound_thenReturnNull() throws Except
6060

6161
@Test
6262
void testCreateProjectComponent_whenSuccess_thenReturnCorrectComponent() throws Exception {
63-
ProjectComponentInfo testComponent = buildTestMarketplaceComponent();
6463
CreateComponentRequest testRequest = buildTestCreateComponentRequest();
6564

6665
when(marketplaceExternalService.provisionProjectComponent(anyString(), any(List.class)))

external-service-marketplace/src/main/java/org/opendevstack/apiservice/externalservice/marketplace/client/MarketplaceApiClientFactory.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private RestTemplate createRestTemplate(MarketplaceInstanceConfig config) {
159159
if (config.isTrustAllCertificates()) {
160160
log.warn("Trust all certificates is enabled for Marketplace API connection. "
161161
+ "This should only be used in development environments!");
162-
configureTrustAllCertificates(restTemplate);
162+
configureTrustAllCertificates();
163163
}
164164

165165
return restTemplate;
@@ -168,10 +168,9 @@ private RestTemplate createRestTemplate(MarketplaceInstanceConfig config) {
168168
/**
169169
* Configure RestTemplate to trust all SSL certificates.
170170
* WARNING: This should only be used in development environments.
171-
*
172-
* @param restTemplate RestTemplate to configure
173171
*/
174-
private void configureTrustAllCertificates(RestTemplate restTemplate) {
172+
@SuppressWarnings({"java:S4830", "java:S1186"})
173+
private void configureTrustAllCertificates() {
175174
try {
176175
TrustManager[] trustAllCerts = new TrustManager[]{
177176
new X509TrustManager() {

0 commit comments

Comments
 (0)