mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-16 16:01:08 +01:00
Fix minor codestyle issues
This commit is contained in:
parent
200f90ffdc
commit
cb18056613
422 changed files with 1404 additions and 1444 deletions
|
|
@ -42,10 +42,10 @@ import org.jxmpp.jid.EntityJid;
|
|||
@Deprecated
|
||||
public class Chat {
|
||||
|
||||
private ChatManager chatManager;
|
||||
private String threadID;
|
||||
private EntityJid participant;
|
||||
private final Set<ChatMessageListener> listeners = new CopyOnWriteArraySet<ChatMessageListener>();
|
||||
private final ChatManager chatManager;
|
||||
private final String threadID;
|
||||
private final EntityJid participant;
|
||||
private final Set<ChatMessageListener> listeners = new CopyOnWriteArraySet<>();
|
||||
|
||||
/**
|
||||
* Creates a new chat with the specified user and thread ID.
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public final class ChatManager extends Manager{
|
|||
|
||||
private static final Logger LOGGER = Logger.getLogger(ChatManager.class.getName());
|
||||
|
||||
private static final Map<XMPPConnection, ChatManager> INSTANCES = new WeakHashMap<XMPPConnection, ChatManager>();
|
||||
private static final Map<XMPPConnection, ChatManager> INSTANCES = new WeakHashMap<>();
|
||||
|
||||
/**
|
||||
* Sets the default behaviour for allowing 'normal' messages to be used in chats. As some clients don't set
|
||||
|
|
@ -128,23 +128,21 @@ public final class ChatManager extends Manager{
|
|||
/**
|
||||
* Maps thread ID to chat.
|
||||
*/
|
||||
private Map<String, Chat> threadChats = new ConcurrentHashMap<>();
|
||||
private final Map<String, Chat> threadChats = new ConcurrentHashMap<>();
|
||||
|
||||
/**
|
||||
* Maps jids to chats
|
||||
*/
|
||||
private Map<Jid, Chat> jidChats = new ConcurrentHashMap<>();
|
||||
private final Map<Jid, Chat> jidChats = new ConcurrentHashMap<>();
|
||||
|
||||
/**
|
||||
* Maps base jids to chats
|
||||
*/
|
||||
private Map<EntityBareJid, Chat> baseJidChats = new ConcurrentHashMap<>();
|
||||
private final Map<EntityBareJid, Chat> baseJidChats = new ConcurrentHashMap<>();
|
||||
|
||||
private Set<ChatManagerListener> chatManagerListeners
|
||||
= new CopyOnWriteArraySet<ChatManagerListener>();
|
||||
private final Set<ChatManagerListener> chatManagerListeners = new CopyOnWriteArraySet<>();
|
||||
|
||||
private Map<MessageListener, StanzaFilter> interceptors
|
||||
= new WeakHashMap<MessageListener, StanzaFilter>();
|
||||
private final Map<MessageListener, StanzaFilter> interceptors = new WeakHashMap<>();
|
||||
|
||||
private ChatManager(XMPPConnection connection) {
|
||||
super(connection);
|
||||
|
|
@ -339,7 +337,7 @@ public final class ChatManager extends Manager{
|
|||
}
|
||||
|
||||
/**
|
||||
* Register a new listener with the ChatManager to recieve events related to chats.
|
||||
* Register a new listener with the ChatManager to receive events related to chats.
|
||||
*
|
||||
* @param listener the listener.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue