File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
exist-core/src/main/java/org/exist/dom/memtree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -139,22 +139,18 @@ public String getLocalName() {
139
139
140
140
@ Override
141
141
public String getNamespaceURI () {
142
- switch (getNodeType ()) {
142
+ return switch (getNodeType ()) {
143
143
case Node .ELEMENT_NODE , Node .ATTRIBUTE_NODE -> {
144
144
final String nsUri = getQName ().getNamespaceURI ();
145
145
if (nsUri .equals (XMLConstants .NULL_NS_URI )) {
146
- return null ;
146
+ yield null ;
147
147
} else {
148
- return nsUri ;
148
+ yield nsUri ;
149
149
}
150
150
}
151
- case NodeImpl .NAMESPACE_NODE -> {
152
- return XMLConstants .XMLNS_ATTRIBUTE_NS_URI ;
153
- }
154
- default -> {
155
- return null ;
156
- }
157
- }
151
+ case NodeImpl .NAMESPACE_NODE -> XMLConstants .XMLNS_ATTRIBUTE_NS_URI ;
152
+ default -> null ;
153
+ };
158
154
}
159
155
160
156
@ Override
You can’t perform that action at this time.
0 commit comments