X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pmproducer%2Fsrc%2Fmain%2Fjava%2Forg%2Foran%2Fpmproducer%2Fclients%2FAsyncRestClient.java;h=403155984059bfc011494770b97e5140b9531cee;hb=HEAD;hp=ac7643645df96943625b65bceaa91981289d4499;hpb=547c200ebd35ebc81a92694fa48653d3ba6dcb27;p=nonrtric%2Fplt%2Franpm.git diff --git a/pmproducer/src/main/java/org/oran/pmproducer/clients/AsyncRestClient.java b/pmproducer/src/main/java/org/oran/pmproducer/clients/AsyncRestClient.java index ac76436..4031559 100644 --- a/pmproducer/src/main/java/org/oran/pmproducer/clients/AsyncRestClient.java +++ b/pmproducer/src/main/java/org/oran/pmproducer/clients/AsyncRestClient.java @@ -29,6 +29,7 @@ import java.lang.invoke.MethodHandles; import java.util.concurrent.atomic.AtomicInteger; import org.oran.pmproducer.configuration.WebClientConfig.HttpProxyConfig; +import org.oran.pmproducer.oauth2.SecurityContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.MediaType; @@ -144,8 +145,7 @@ public class AsyncRestClient { } private void onError(Throwable t) { - if (t instanceof WebClientResponseException) { - WebClientResponseException e = (WebClientResponseException) t; + if (t instanceof WebClientResponseException e) { logger.debug("Response error: {}", e.getResponseBodyAsString()); } }