mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-14 06:51:08 +01:00
Cleanup carbons, forwarded and a few others API
Adopt to common design patterns in Smack: - getFrom(Packet) in Packetextensions - INSTANCES.put() in getInstanceFor() - ELEMENT instead of ELEMENT_NAME - Use XmlStringBuilder
This commit is contained in:
parent
1ed5c48bcc
commit
49ee058c38
14 changed files with 105 additions and 90 deletions
|
|
@ -60,6 +60,7 @@ public class EntityTimeManager extends Manager {
|
|||
EntityTimeManager entityTimeManager = INSTANCES.get(connection);
|
||||
if (entityTimeManager == null) {
|
||||
entityTimeManager = new EntityTimeManager(connection);
|
||||
INSTANCES.put(connection, entityTimeManager);
|
||||
}
|
||||
return entityTimeManager;
|
||||
}
|
||||
|
|
@ -68,7 +69,6 @@ public class EntityTimeManager extends Manager {
|
|||
|
||||
private EntityTimeManager(XMPPConnection connection) {
|
||||
super(connection);
|
||||
INSTANCES.put(connection, this);
|
||||
if (autoEnable)
|
||||
enable();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue