1
0

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:
Sebastian Bazley
2012-07-18 18:32:49 +00:00
parent 6f9fdc1198
commit 2a9617af3b
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}