1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 10:49:41 +02:00

Make JUL Loggers final (SMACK-536)

This commit is contained in:
Florian Schmaus 2014-02-26 21:38:02 +01:00
parent f0c6d1f1d3
commit 54a421e84e
30 changed files with 109 additions and 109 deletions

View file

@ -63,7 +63,7 @@ import java.util.logging.Logger;
*/
public class EnhancedDebugger implements SmackDebugger {
private static Logger log = Logger.getLogger(EnhancedDebugger.class.getName());
private static final Logger LOGGER = Logger.getLogger(EnhancedDebugger.class.getName());
private static final String NEWLINE = "\n";
@ -428,7 +428,7 @@ public class EnhancedDebugger implements SmackDebugger {
receivedText.replaceRange("", 0, receivedText.getLineEndOffset(0));
}
catch (BadLocationException e) {
log.log(Level.SEVERE, "Error with line offset, MAX_TABLE_ROWS is set too low: " + EnhancedDebuggerWindow.MAX_TABLE_ROWS, e);
LOGGER.log(Level.SEVERE, "Error with line offset, MAX_TABLE_ROWS is set too low: " + EnhancedDebuggerWindow.MAX_TABLE_ROWS, e);
}
}
receivedText.append(str.substring(0, index + 1));
@ -463,7 +463,7 @@ public class EnhancedDebugger implements SmackDebugger {
sentText.replaceRange("", 0, sentText.getLineEndOffset(0));
}
catch (BadLocationException e) {
log.log(Level.SEVERE, "Error with line offset, MAX_TABLE_ROWS is set too low: " + EnhancedDebuggerWindow.MAX_TABLE_ROWS, e);
LOGGER.log(Level.SEVERE, "Error with line offset, MAX_TABLE_ROWS is set too low: " + EnhancedDebuggerWindow.MAX_TABLE_ROWS, e);
}
}
@ -896,10 +896,10 @@ public class EnhancedDebugger implements SmackDebugger {
}
catch (TransformerConfigurationException tce) {
log.log(Level.SEVERE, "Transformer Factory error", tce);
LOGGER.log(Level.SEVERE, "Transformer Factory error", tce);
}
catch (TransformerException te) {
log.log(Level.SEVERE, "Transformation error", te);
LOGGER.log(Level.SEVERE, "Transformation error", te);
}
return str;
}