From 54f62bcb54dc510aaffbade0cc55dcead17db4a8 Mon Sep 17 00:00:00 2001 From: Pawel Sosnowski Date: Mon, 4 Dec 2023 11:29:59 +0100 Subject: [PATCH] feat(irs-apiirs-edc-client):[#256] fix findbug findings --- .../tractusx/irs/edc/client/ContractNegotiationService.java | 4 ++-- .../edc/client/util/EndpointDataReferenceCacheService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/ContractNegotiationService.java b/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/ContractNegotiationService.java index fdd9a6f174..89bdd72c0a 100644 --- a/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/ContractNegotiationService.java +++ b/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/ContractNegotiationService.java @@ -69,8 +69,8 @@ public NegotiationResponse negotiate(final String providerConnectorUrl, final Ca @SuppressWarnings("PMD.AvoidReassigningParameters") @edu.umd.cs.findbugs.annotations.SuppressFBWarnings( - value="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE", - justification="Not reachable code") + value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE", + justification = "Not reachable code") public NegotiationResponse negotiate(final String providerConnectorUrl, final CatalogItem catalogItem, EndpointDataReferenceStatus endpointDataReferenceStatus) throws ContractNegotiationException, UsagePolicyException, TransferProcessException { diff --git a/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/util/EndpointDataReferenceCacheService.java b/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/util/EndpointDataReferenceCacheService.java index 963a1c7773..598439fe81 100644 --- a/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/util/EndpointDataReferenceCacheService.java +++ b/irs-edc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/util/EndpointDataReferenceCacheService.java @@ -78,7 +78,7 @@ private Optional retrieveEndpointEndpointReferenceByAsset } @edu.umd.cs.findbugs.annotations.SuppressFBWarnings( - value="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE") + value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE") private static boolean isTokenExpired(final EndpointDataReference endpointDataReference) { final Instant tokenExpirationInstant = extractTokenExpiration(endpointDataReference.getAuthCode()); return Instant.now().isAfter(tokenExpirationInstant);