Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Use Optional.isEmpty()
[netconf.git]
/
restconf
/
restconf-nb-bierman02
/
src
/
main
/
java
/
org
/
opendaylight
/
netconf
/
sal
/
streams
/
listeners
/
ListenerAdapter.java
diff --git
a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/ListenerAdapter.java
b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/ListenerAdapter.java
index 8afc8dedae20ae02f6f27078b69ea9781c443967..b9e738927a8bc071c1cb8e6a52823f6be8a4d58d 100644
(file)
--- a/
restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/ListenerAdapter.java
+++ b/
restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/ListenerAdapter.java
@@
-209,7
+209,7
@@
public class ListenerAdapter extends AbstractCommonSubscriber implements Cluster
break;
}
- if (
!optionalNormalizedNode.isPresent
()) {
+ if (
optionalNormalizedNode.isEmpty
()) {
LOG.error("No node present in notification for {}", candidateNode);
return;
}