mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 14:01:08 +01:00
Remove ServiceDiscoveryManager.getFeaturesList()
The method was redundant, getFeatures() did already return a copy of the features. There is also no need to make it an unmodifiable List.
This commit is contained in:
parent
ed313c9629
commit
fadef7d1bf
2 changed files with 5 additions and 13 deletions
|
|
@ -357,23 +357,15 @@ public class ServiceDiscoveryManager extends Manager {
|
|||
|
||||
/**
|
||||
* Returns the supported features by this XMPP entity.
|
||||
* <p>
|
||||
* The result is a copied modifiable list of the original features.
|
||||
* </p>
|
||||
*
|
||||
* @return a List of the supported features by this XMPP entity.
|
||||
*/
|
||||
public List<String> getFeatures() {
|
||||
synchronized (features) {
|
||||
return Collections.unmodifiableList(new ArrayList<String>(features));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the supported features by this XMPP entity.
|
||||
*
|
||||
* @return a copy of the List on the supported features by this XMPP entity.
|
||||
*/
|
||||
public List<String> getFeaturesList() {
|
||||
synchronized (features) {
|
||||
return new LinkedList<String>(features);
|
||||
return new ArrayList<String>(features);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue