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
CI: Add SonarCloud scan GHA workflow
[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
1fc0620
..
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
@@
-145,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());
}
}