1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-15 20:12:04 +01:00

ServiceDiscoveryManager: Use 'Set' as data structure for features to prevent reporting duplicate features

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13465 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Florian Schmaus 2013-02-11 17:22:42 +00:00 committed by flow
parent 7723b9fcfd
commit 1a170c1561

View file

@ -54,7 +54,7 @@ public class ServiceDiscoveryManager {
new ConcurrentHashMap<Connection, ServiceDiscoveryManager>(); new ConcurrentHashMap<Connection, ServiceDiscoveryManager>();
private Connection connection; private Connection connection;
private final List<String> features = new ArrayList<String>(); private final Set<String> features = new HashSet<String>();
private DataForm extendedInfo = null; private DataForm extendedInfo = null;
private Map<String, NodeInformationProvider> nodeInformationProviders = private Map<String, NodeInformationProvider> nodeInformationProviders =
new ConcurrentHashMap<String, NodeInformationProvider>(); new ConcurrentHashMap<String, NodeInformationProvider>();