File tree 1 file changed +2
-3
lines changed
src/main/java/org/junit/internal
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ public class ArrayComparisonFailure extends AssertionError {
16
16
17
17
private List <Integer > fIndices = new ArrayList <Integer >();
18
18
private final String fMessage ;
19
- private final AssertionError fCause ;
20
19
21
20
/**
22
21
* Construct a new <code>ArrayComparisonFailure</code> with an error text and the array's
@@ -28,7 +27,7 @@ public class ArrayComparisonFailure extends AssertionError {
28
27
*/
29
28
public ArrayComparisonFailure (String message , AssertionError cause , int index ) {
30
29
fMessage = message ;
31
- fCause = cause ;
30
+ initCause ( cause ) ;
32
31
addDimension (index );
33
32
}
34
33
@@ -49,7 +48,7 @@ public String getMessage() {
49
48
sb .append ("]" );
50
49
}
51
50
sb .append ("; " );
52
- sb .append (fCause .getMessage ());
51
+ sb .append (getCause () .getMessage ());
53
52
return sb .toString ();
54
53
}
55
54
You can’t perform that action at this time.
0 commit comments