You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2014/09/25 16:43:57 UTC

git commit: Let this JUnit rule be final.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 8ed7bbac0 -> ca579bd19


Let this JUnit rule be final.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/ca579bd1
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ca579bd1
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ca579bd1

Branch: refs/heads/master
Commit: ca579bd191b3a5333d60d96706b44f9e0db76c3a
Parents: 8ed7bba
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Sep 25 10:43:54 2014 -0400
Committer: Gary Gregory <ga...@gmail.com>
Committed: Thu Sep 25 10:43:54 2014 -0400

----------------------------------------------------------------------
 .../log4j/core/appender/RandomAccessFileAppenderTests.java    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ca579bd1/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppenderTests.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppenderTests.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppenderTests.java
index 950001e..e2a5cd7 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppenderTests.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppenderTests.java
@@ -54,11 +54,11 @@ public class RandomAccessFileAppenderTests {
         );
     }
 
-    private InitialLoggerContext init;
-    private CleanFiles files;
+    private final InitialLoggerContext init;
+    private final CleanFiles files;
 
     @Rule
-    public RuleChain chain = RuleChain.outerRule(files).around(init);
+    public final RuleChain chain;
 
     private final File logFile;
     private final boolean locationEnabled;
@@ -68,6 +68,7 @@ public class RandomAccessFileAppenderTests {
         this.logFile = new File("target", testName + ".log");
         this.files = new CleanFiles(this.logFile);
         this.locationEnabled = locationEnabled;
+        this.chain = RuleChain.outerRule(files).around(init);
     }
 
     @Test