1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 07:22:07 +01:00

[core] Change type of XmlStringBuilder cosntructor to FullyQualifiedElement

There is no reason we should do this only for ExtensionElements, this
behavior is sane for every FulllyQualifiedElement.
This commit is contained in:
Florian Schmaus 2020-08-26 11:35:22 +02:00
parent d00656493a
commit 2a9671ca93

View file

@ -1,6 +1,6 @@
/**
*
* Copyright 2014-2019 Florian Schmaus
* Copyright 2014-2020 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,7 +24,6 @@ import java.util.Date;
import java.util.List;
import org.jivesoftware.smack.packet.Element;
import org.jivesoftware.smack.packet.ExtensionElement;
import org.jivesoftware.smack.packet.FullyQualifiedElement;
import org.jivesoftware.smack.packet.NamedElement;
import org.jivesoftware.smack.packet.XmlEnvironment;
@ -43,7 +42,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
effectiveXmlEnvironment = null;
}
public XmlStringBuilder(ExtensionElement pe) {
public XmlStringBuilder(FullyQualifiedElement pe) {
this(pe, null);
}