forked from I2P_Developers/i2p.i2p
util cleanups
This commit is contained in:
@ -30,7 +30,7 @@ import java.util.zip.ZipFile;
|
|||||||
* General helper methods for messing with files
|
* General helper methods for messing with files
|
||||||
*
|
*
|
||||||
* These are static methods that do NOT convert arguments
|
* These are static methods that do NOT convert arguments
|
||||||
* to absolute paths for a particular context and directtory.
|
* to absolute paths for a particular context and directory.
|
||||||
*
|
*
|
||||||
* Callers should ALWAYS provide absolute paths as arguments,
|
* Callers should ALWAYS provide absolute paths as arguments,
|
||||||
* and should NEVER assume files are in the current working directory.
|
* and should NEVER assume files are in the current working directory.
|
||||||
|
@ -10,17 +10,17 @@ package net.i2p.util;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Frisbee
|
* Keep track of a log entry, unformatted.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class LogRecord {
|
class LogRecord {
|
||||||
private long _date;
|
private final long _date;
|
||||||
private Class _source;
|
private final Class _source;
|
||||||
private String _name;
|
private final String _name;
|
||||||
private String _threadName;
|
private final String _threadName;
|
||||||
private int _priority;
|
private final int _priority;
|
||||||
private String _message;
|
private final String _message;
|
||||||
private Throwable _throwable;
|
private final Throwable _throwable;
|
||||||
|
|
||||||
public LogRecord(Class src, String name, String threadName, int priority, String msg, Throwable t) {
|
public LogRecord(Class src, String name, String threadName, int priority, String msg, Throwable t) {
|
||||||
_date = Clock.getInstance().now();
|
_date = Clock.getInstance().now();
|
||||||
@ -59,4 +59,4 @@ class LogRecord {
|
|||||||
public Throwable getThrowable() {
|
public Throwable getThrowable() {
|
||||||
return _throwable;
|
return _throwable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user