mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-08 14:11:07 +01:00
Re-activate EntityCaps integration test
This commit is contained in:
parent
1f7770b831
commit
7655ac17f2
16 changed files with 358 additions and 181 deletions
|
|
@ -101,7 +101,7 @@ public final class EntityCapsManager extends Manager {
|
|||
/**
|
||||
* Map of "node + '#' + hash" to DiscoverInfo data
|
||||
*/
|
||||
private static final LruCache<String, DiscoverInfo> CAPS_CACHE = new LruCache<String, DiscoverInfo>(1000);
|
||||
static final LruCache<String, DiscoverInfo> CAPS_CACHE = new LruCache<String, DiscoverInfo>(1000);
|
||||
|
||||
/**
|
||||
* Map of Full JID -> DiscoverInfo/null. In case of c2s connection the
|
||||
|
|
@ -109,7 +109,7 @@ public final class EntityCapsManager extends Manager {
|
|||
* link-local connection the key is formed as user@host (no resource) In
|
||||
* case of a server or component the key is formed as domain
|
||||
*/
|
||||
private static final LruCache<Jid, NodeVerHash> JID_TO_NODEVER_CACHE = new LruCache<>(10000);
|
||||
static final LruCache<Jid, NodeVerHash> JID_TO_NODEVER_CACHE = new LruCache<>(10000);
|
||||
|
||||
static {
|
||||
XMPPConnectionRegistry.addConnectionCreationListener(new ConnectionCreationListener() {
|
||||
|
|
@ -159,7 +159,7 @@ public final class EntityCapsManager extends Manager {
|
|||
* the user (Full JID)
|
||||
* @return the node version (node#ver) or null
|
||||
*/
|
||||
public static String getNodeVersionByJid(String jid) {
|
||||
public static String getNodeVersionByJid(Jid jid) {
|
||||
NodeVerHash nvh = JID_TO_NODEVER_CACHE.get(jid);
|
||||
if (nvh != null) {
|
||||
return nvh.nodeVer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue