1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

core: improve signature of Stanza.addExtensions()

This commit is contained in:
Florian Schmaus 2020-04-18 19:03:43 +02:00
parent 661b2743d9
commit cdc5396f6c

View file

@ -445,7 +445,7 @@ public abstract class Stanza implements StanzaView, TopLevelStreamElement {
* @param extensions a collection of stanza extensions
*/
// TODO: Mark this as deprecated once StanzaBuilder is ready and all call sites are gone.
public final void addExtensions(Collection<ExtensionElement> extensions) {
public final void addExtensions(Collection<? extends ExtensionElement> extensions) {
if (extensions == null) return;
for (ExtensionElement packetExtension : extensions) {
addExtension(packetExtension);