mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 01:29:38 +02:00
Make JUL Loggers final (SMACK-536)
This commit is contained in:
parent
f0c6d1f1d3
commit
54a421e84e
30 changed files with 109 additions and 109 deletions
|
@ -44,7 +44,7 @@ import java.util.logging.Logger;
|
|||
* @see AgentSession#getAgentRoster()
|
||||
*/
|
||||
public class AgentRoster {
|
||||
private static Logger log = Logger.getLogger(AgentRoster.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(AgentRoster.class.getName());
|
||||
private static final int EVENT_AGENT_ADDED = 0;
|
||||
private static final int EVENT_AGENT_REMOVED = 1;
|
||||
private static final int EVENT_PRESENCE_CHANGED = 2;
|
||||
|
@ -283,7 +283,7 @@ public class AgentRoster {
|
|||
String from = presence.getFrom();
|
||||
if (from == null) {
|
||||
// TODO Check if we need to ignore these presences or this is a server bug?
|
||||
log.warning("Presence with no FROM: " + presence.toXML());
|
||||
LOGGER.warning("Presence with no FROM: " + presence.toXML());
|
||||
return;
|
||||
}
|
||||
String key = getPresenceMapKey(from);
|
||||
|
|
|
@ -53,7 +53,7 @@ import java.util.logging.Logger;
|
|||
* @author Derek DeMoro
|
||||
*/
|
||||
public class AgentSession {
|
||||
private static Logger log = Logger.getLogger(AgentSession.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(AgentSession.class.getName());
|
||||
|
||||
private Connection connection;
|
||||
|
||||
|
@ -119,7 +119,7 @@ public class AgentSession {
|
|||
handlePacket(packet);
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.log(Level.SEVERE, "Error processing packet", e);
|
||||
LOGGER.log(Level.SEVERE, "Error processing packet", e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@ import java.util.logging.Logger;
|
|||
* currently in a queue.
|
||||
*/
|
||||
public class QueueDetails implements PacketExtension {
|
||||
private static Logger log = Logger.getLogger(QueueDetails.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(QueueDetails.class.getName());
|
||||
|
||||
/**
|
||||
* Element name of the packet extension.
|
||||
|
@ -178,7 +178,7 @@ public class QueueDetails implements PacketExtension {
|
|||
}
|
||||
else if( parser.getName().equals( "waitTime" ) ) {
|
||||
Date wait = dateFormat.parse(parser.nextText());
|
||||
log.fine(wait.toString());
|
||||
LOGGER.fine(wait.toString());
|
||||
}
|
||||
|
||||
eventType = parser.next();
|
||||
|
|
|
@ -35,7 +35,7 @@ import java.util.logging.Logger;
|
|||
* @author loki der quaeler
|
||||
*/
|
||||
public class ListenerEventDispatcher implements Runnable {
|
||||
private static Logger log = Logger.getLogger(ListenerEventDispatcher.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(ListenerEventDispatcher.class.getName());
|
||||
|
||||
protected transient ArrayList<TripletContainer> triplets;
|
||||
|
||||
|
@ -95,7 +95,7 @@ public class ListenerEventDispatcher implements Runnable {
|
|||
try {
|
||||
tc.getListenerMethod().invoke(tc.getListenerInstance(), tc.getMethodArguments());
|
||||
} catch (Exception e) {
|
||||
log.log(Level.SEVERE, "Exception dispatching an event", e);
|
||||
LOGGER.log(Level.SEVERE, "Exception dispatching an event", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue