1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

[xmlparser-stax] Move getNamespace() to its friends within the file

This commit is contained in:
Florian Schmaus 2021-03-03 21:43:43 +01:00
parent ba6968fc79
commit 3bef905ef5

View file

@ -73,6 +73,12 @@ public final class StaxXmlPullParser implements XmlPullParser {
return namespaceContext.getNamespaceURI(prefix); return namespaceContext.getNamespaceURI(prefix);
} }
@Override
public String getNamespace() {
String prefix = getPrefix();
return getNamespace(prefix);
}
@Override @Override
public int getDepth() { public int getDepth() {
return depth; return depth;
@ -106,12 +112,6 @@ public final class StaxXmlPullParser implements XmlPullParser {
return xmlStreamReader.getText(); return xmlStreamReader.getText();
} }
@Override
public String getNamespace() {
String prefix = getPrefix();
return getNamespace(prefix);
}
@Override @Override
public String getName() { public String getName() {
QName qname = getQName(); QName qname = getQName();