Add final modifier to private fields.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -109,7 +109,7 @@ public class PathableTestSuite extends TestSuite {
|
|||||||
* The classloader that should be set as the context classloader
|
* The classloader that should be set as the context classloader
|
||||||
* before each test in the suite is run.
|
* before each test in the suite is run.
|
||||||
*/
|
*/
|
||||||
private ClassLoader contextLoader;
|
private final ClassLoader contextLoader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class TestHandler extends Handler {
|
|||||||
|
|
||||||
|
|
||||||
// The set of logged records for this handler
|
// The set of logged records for this handler
|
||||||
private List records = new ArrayList();
|
private final List records = new ArrayList();
|
||||||
|
|
||||||
|
|
||||||
// --------------------------------------------------------- Public Methods
|
// --------------------------------------------------------- Public Methods
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class TestAppender extends AppenderSkeleton {
|
|||||||
|
|
||||||
|
|
||||||
// The set of logged events for this appender
|
// The set of logged events for this appender
|
||||||
private List events;
|
private final List events;
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------- Appender Methods
|
// ------------------------------------------------------- Appender Methods
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import java.security.Permissions;
|
|||||||
*/
|
*/
|
||||||
public class MockSecurityManager extends SecurityManager {
|
public class MockSecurityManager extends SecurityManager {
|
||||||
|
|
||||||
private Permissions permissions = new Permissions();
|
private final Permissions permissions = new Permissions();
|
||||||
private static final Permission setSecurityManagerPerm =
|
private static final Permission setSecurityManagerPerm =
|
||||||
new RuntimePermission("setSecurityManager");
|
new RuntimePermission("setSecurityManager");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user