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]
/
netconf
/
netconf-api
/
src
/
main
/
java
/
org
/
opendaylight
/
netconf
/
api
/
xml
/
XmlUtil.java
diff --git
a/netconf/netconf-api/src/main/java/org/opendaylight/netconf/api/xml/XmlUtil.java
b/netconf/netconf-api/src/main/java/org/opendaylight/netconf/api/xml/XmlUtil.java
index d3c40614280e9a28c099be6d8eb37d0d3715d707..84548313176f326ed6fb071c7347a86f1ec75508 100644
(file)
--- a/
netconf/netconf-api/src/main/java/org/opendaylight/netconf/api/xml/XmlUtil.java
+++ b/
netconf/netconf-api/src/main/java/org/opendaylight/netconf/api/xml/XmlUtil.java
@@
-122,7
+122,7
@@
public final class XmlUtil {
public static Element createElement(final Document document, final String qname,
final Optional<String> namespaceURI) {
- if (
!namespaceURI.isPresent
()) {
+ if (
namespaceURI.isEmpty
()) {
return document.createElement(qname);
}