Code Review
/
nonrtric
/
plt
/
ranpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve Test coverage of pmproducer
[nonrtric/plt/ranpm.git]
/
pmproducer
/
src
/
main
/
java
/
org
/
oran
/
pmproducer
/
clients
/
AsyncRestClient.java
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
(file)
--- 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 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;
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) {
}
private void onError(Throwable t) {
- if (t instanceof WebClientResponseException) {
- WebClientResponseException e = (WebClientResponseException) t;
+ if (t instanceof WebClientResponseException e) {
logger.debug("Response error: {}", e.getResponseBodyAsString());
}
}
logger.debug("Response error: {}", e.getResponseBodyAsString());
}
}