Use Optional.isEmpty()
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / streams / listeners / ListenerAdapter.java
index 8afc8dedae20ae02f6f27078b69ea9781c443967..b9e738927a8bc071c1cb8e6a52823f6be8a4d58d 100644 (file)
@@ -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;
         }