diff --git a/src/java/com/samskivert/util/DefaultLogProvider.java b/src/java/com/samskivert/util/DefaultLogProvider.java index 857a2a11..323caab0 100644 --- a/src/java/com/samskivert/util/DefaultLogProvider.java +++ b/src/java/com/samskivert/util/DefaultLogProvider.java @@ -67,30 +67,28 @@ public class DefaultLogProvider implements LogProvider public synchronized void log ( int level, String moduleName, String message) { - Integer tlevel = _levels.get(moduleName); - if (level >= getLevel(moduleName)) { - System.err.println(formatEntry(moduleName, level, message)); - } + if (level >= getLevel(moduleName)) { + System.err.println(formatEntry(moduleName, level, message)); + } } public synchronized void logStackTrace (int level, String moduleName, Throwable t) { - Integer tlevel = _levels.get(moduleName); - if (level >= getLevel(moduleName)) { - System.err.print(formatEntry(moduleName, level, "")); - t.printStackTrace(System.err); - } + if (level >= getLevel(moduleName)) { + System.err.print(formatEntry(moduleName, level, "")); + t.printStackTrace(System.err); + } } public synchronized void setLevel (String moduleName, int level) { - _levels.put(moduleName, level); + _levels.put(moduleName, level); } public synchronized void setLevel (int level) { - _level = level; - _levels.clear(); + _level = level; + _levels.clear(); } public synchronized int getLevel (String moduleName) @@ -200,13 +198,11 @@ public class DefaultLogProvider implements LogProvider protected HashMap _levels = new HashMap(); /** Used to accompany log messages with time stamps. */ - protected SimpleDateFormat _format = - new SimpleDateFormat("yyyy/MM/dd HH:mm:ss:SSS"); + protected SimpleDateFormat _format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss:SSS"); /** Needed for the more efficient {@link * SimpleDateFormat#format(Date,StringBuffer,FieldPosition)}. */ - protected FieldPosition _fpos = - new FieldPosition(SimpleDateFormat.DATE_FIELD); + protected FieldPosition _fpos = new FieldPosition(SimpleDateFormat.DATE_FIELD); /** Contains the dimensions of the terminal window in which we're * running, if it was possible to obtain them. Otherwise, it contains diff --git a/src/java/com/samskivert/util/QuickSort.java b/src/java/com/samskivert/util/QuickSort.java index 9c83eb86..d941d366 100644 --- a/src/java/com/samskivert/util/QuickSort.java +++ b/src/java/com/samskivert/util/QuickSort.java @@ -385,7 +385,7 @@ public class QuickSort return; } - T e1, e2, t; + T e1, e2; // if this is a two element file, do a simple sort on it if (hi0 - lo0 == 1) {