Make immutable private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1363037 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -57,7 +57,7 @@ public class AvalonLogger implements Log {
|
||||
/** Ancesteral avalon logger */
|
||||
private static Logger defaultLogger = null;
|
||||
/** Avalon logger used to perform log */
|
||||
private transient Logger logger = null;
|
||||
private final transient Logger logger;
|
||||
|
||||
/**
|
||||
* Constructs an <code>AvalonLogger</code> that outputs to the given
|
||||
|
||||
@@ -58,7 +58,7 @@ public class Log4JLogger implements Log, Serializable {
|
||||
private transient Logger logger = null;
|
||||
|
||||
/** Logger name */
|
||||
private String name = null;
|
||||
private final String name;
|
||||
|
||||
private static final Priority traceLevel;
|
||||
|
||||
@@ -100,6 +100,7 @@ public class Log4JLogger implements Log, Serializable {
|
||||
// ------------------------------------------------------------ Constructor
|
||||
|
||||
public Log4JLogger() {
|
||||
name = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user