mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-01 16:32:08 +01:00
core: remove deprecated methods in PacketUtil
Those where deprecated in 2015 with8409dddff
("Add PacketUtil.extensionElementFrom()"), and in 2017 with2288825b1
("Retain smack-core API").
This commit is contained in:
parent
fb7054bbe7
commit
5114f6dfa4
1 changed files with 1 additions and 35 deletions
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Copyright © 2014 Florian Schmaus
|
* Copyright © 2014-2020 Florian Schmaus
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -22,40 +22,6 @@ import org.jivesoftware.smack.packet.ExtensionElement;
|
||||||
|
|
||||||
public class PacketUtil {
|
public class PacketUtil {
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a extension element from a collection.
|
|
||||||
* @param collection TODO javadoc me please
|
|
||||||
* @param element TODO javadoc me please
|
|
||||||
* @param namespace TODO javadoc me please
|
|
||||||
* @param <PE> the type of the extension element.
|
|
||||||
* @return the extension element
|
|
||||||
* @deprecated use {@link #extensionElementFrom(Collection, String, String)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public static <PE extends ExtensionElement> PE packetExtensionfromCollection(
|
|
||||||
Collection<ExtensionElement> collection, String element,
|
|
||||||
String namespace) {
|
|
||||||
return extensionElementFrom(collection, element, namespace);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a extension element from a collection.
|
|
||||||
*
|
|
||||||
* @param collection Collection of ExtensionElements.
|
|
||||||
* @param element name of the targeted ExtensionElement.
|
|
||||||
* @param namespace namespace of the targeted ExtensionElement.
|
|
||||||
* @param <PE> Type of the ExtensionElement
|
|
||||||
*
|
|
||||||
* @return the extension element
|
|
||||||
* @deprecated use {@link #extensionElementFrom(Collection, String, String)} instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public static <PE extends ExtensionElement> PE packetExtensionFromCollection(
|
|
||||||
Collection<ExtensionElement> collection, String element,
|
|
||||||
String namespace) {
|
|
||||||
return extensionElementFrom(collection, element, namespace);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a extension element from a collection.
|
* Get a extension element from a collection.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue