mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Bump JXMPP to 0.5.0
This commit is contained in:
parent
f633313c4a
commit
183c605278
8 changed files with 13 additions and 13 deletions
|
@ -304,7 +304,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
|
|||
* @param address the address the connection failure counter should be increased
|
||||
*/
|
||||
private static void incrementConnectionFailures(String address) {
|
||||
Integer count = ADDRESS_BLACKLIST.get(address);
|
||||
Integer count = ADDRESS_BLACKLIST.lookup(address);
|
||||
ADDRESS_BLACKLIST.put(address, count == null ? 1 : count + 1);
|
||||
}
|
||||
|
||||
|
@ -315,7 +315,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
|
|||
* @return number of connection failures
|
||||
*/
|
||||
private static int getConnectionFailures(String address) {
|
||||
Integer count = ADDRESS_BLACKLIST.get(address);
|
||||
Integer count = ADDRESS_BLACKLIST.lookup(address);
|
||||
return count != null ? count : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ public final class EntityCapsManager extends Manager {
|
|||
* @return the node version (node#ver) or null
|
||||
*/
|
||||
public static String getNodeVersionByJid(Jid jid) {
|
||||
NodeVerHash nvh = JID_TO_NODEVER_CACHE.get(jid);
|
||||
NodeVerHash nvh = JID_TO_NODEVER_CACHE.lookup(jid);
|
||||
if (nvh != null) {
|
||||
return nvh.nodeVer;
|
||||
} else {
|
||||
|
@ -169,7 +169,7 @@ public final class EntityCapsManager extends Manager {
|
|||
}
|
||||
|
||||
public static NodeVerHash getNodeVerHashByJid(Jid jid) {
|
||||
return JID_TO_NODEVER_CACHE.get(jid);
|
||||
return JID_TO_NODEVER_CACHE.lookup(jid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -182,7 +182,7 @@ public final class EntityCapsManager extends Manager {
|
|||
* @return the discovered info
|
||||
*/
|
||||
public static DiscoverInfo getDiscoverInfoByUser(Jid user) {
|
||||
NodeVerHash nvh = JID_TO_NODEVER_CACHE.get(user);
|
||||
NodeVerHash nvh = JID_TO_NODEVER_CACHE.lookup(user);
|
||||
if (nvh == null)
|
||||
return null;
|
||||
|
||||
|
@ -198,7 +198,7 @@ public final class EntityCapsManager extends Manager {
|
|||
* @return The corresponding DiscoverInfo or null if none is known.
|
||||
*/
|
||||
public static DiscoverInfo getDiscoveryInfoByNodeVer(String nodeVer) {
|
||||
DiscoverInfo info = CAPS_CACHE.get(nodeVer);
|
||||
DiscoverInfo info = CAPS_CACHE.lookup(nodeVer);
|
||||
|
||||
// If it was not in CAPS_CACHE, try to retrieve the information from persistentCache
|
||||
if (info == null && persistentCache != null) {
|
||||
|
|
|
@ -730,7 +730,7 @@ public final class ServiceDiscoveryManager extends Manager {
|
|||
List<DiscoverInfo> serviceDiscoInfo = null;
|
||||
DomainBareJid serviceName = connection().getXMPPServiceDomain();
|
||||
if (useCache) {
|
||||
serviceDiscoInfo = services.get(feature);
|
||||
serviceDiscoInfo = services.lookup(feature);
|
||||
if (serviceDiscoInfo != null) {
|
||||
return serviceDiscoInfo;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue