Untabification, unused variable cleanup.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2346 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2008-07-26 20:26:26 +00:00
parent 9e034ea863
commit 784698c730
2 changed files with 13 additions and 17 deletions
@@ -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<String,Integer> _levels = new HashMap<String,Integer>();
/** 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
+1 -1
View File
@@ -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) {