Improve Test coverage of pmproducer
[nonrtric/plt/ranpm.git] / pmproducer / src / main / java / org / oran / pmproducer / clients / AsyncRestClient.java
index 1fc0620..4031559 100644 (file)
@@ -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());
         }
     }