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=1fc062048206bc6cdd0e485b2821b3143c5303d6;hpb=d806dbef4f43bb9c631c818e96c1a39e440c5e6c;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 1fc0620..4031559 100644 --- a/pmproducer/src/main/java/org/oran/pmproducer/clients/AsyncRestClient.java +++ b/pmproducer/src/main/java/org/oran/pmproducer/clients/AsyncRestClient.java @@ -145,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()); } }