[SUREFIRE] refactoring

Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/d755ecfc
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/d755ecfc
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/d755ecfc

Branch: refs/heads/master
Commit: d755ecfc45fcc68dd4b40953737dada0f2a00fcd
Parents: 1e547c8
Author: Tibor17 <tibo...@lycos.com>
Authored: Mon Aug 3 22:48:36 2015 +0200
Committer: Tibor17 <tibo...@lycos.com>
Committed: Sun Sep 6 22:57:56 2015 +0200

----------------------------------------------------------------------
 .../surefire/common/junit4/JUnitTestFailureListener.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/d755ecfc/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
----------------------------------------------------------------------
diff --git 
a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
 
b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
index 473082d..e6fe2de 100644
--- 
a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
+++ 
b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
@@ -20,6 +20,7 @@ package org.apache.maven.surefire.common.junit4;
  */
 
 import org.junit.runner.notification.Failure;
+import org.junit.runner.notification.RunListener;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -30,14 +31,13 @@ import java.util.List;
  * @author Qingzhou Luo
  */
 public class JUnitTestFailureListener
-    extends org.junit.runner.notification.RunListener
+    extends RunListener
 {
-
-    List<Failure> allFailures = new ArrayList<Failure>();
+    private final List<Failure> allFailures = new ArrayList<Failure>();
 
     @Override
     public void testFailure( Failure failure )
-        throws java.lang.Exception
+        throws Exception
     {
         allFailures.add( failure );
     }

Reply via email to