Various java compliance & rule fixes. More of this and optimization tomorrow.

This commit is contained in:
h31ix committed 2012-11-01 23:00:48 -04:00
1 parent 6b2835b018
commit 39db8afe81
10 files changed
+94 -143

No files matched your search

@@ -26,13 +26,13 @@ import java.util.logging.LogRecord;
public class FileFormatter extends Formatter
{
private static final DateFormat format = new SimpleDateFormat("h:mm:ss");
private static final String lineSep = System.getProperty("line.separator");
private static final DateFormat FORMAT = new SimpleDateFormat("h:mm:ss");
private static final String LINE_SEP = System.getProperty("line.separator");
@Override
public String format(LogRecord record)
{
StringBuilder output = new StringBuilder().append("[").append(record.getLevel()).append('|').append(format.format(new Date(record.getMillis()))).append("]: ").append(record.getMessage()).append(' ').append(lineSep);
StringBuilder output = new StringBuilder().append("[").append(record.getLevel()).append('|').append(FORMAT.format(new Date(record.getMillis()))).append("]: ").append(record.getMessage()).append(' ').append(LINE_SEP);
return output.toString();
}
}