Skip to content

Commit

Permalink
feat(irs-apiirs-edc-client):[#256] fix findbug findings
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-psosnowski committed Dec 4, 2023
1 parent e8158a6 commit 54f62bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private Optional<EndpointDataReference> 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);
Expand Down

0 comments on commit 54f62bc

Please sign in to comment.