File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
junit-jupiter-api/src/main/java/org/junit/jupiter/api Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public class AssertionFailureBuilder {
4949
5050 private boolean includeValuesInMessage = true ;
5151
52- private @ Nullable Class <?> trimStackTraceBefore ;
52+ private @ Nullable Class <?> trimStackTraceTarget ;
5353
5454 private int trimStackTraceRetain ;
5555
@@ -151,7 +151,7 @@ public AssertionFailureBuilder includeValuesInMessage(boolean includeValuesInMes
151151 @ API (status = EXPERIMENTAL , since = "6.1" )
152152 public AssertionFailureBuilder trimStacktrace (@ Nullable Class <?> target , int retain ) {
153153 Preconditions .condition (retain >= 0 , "retain must have a non-negative value" );
154- this .trimStackTraceBefore = target ;
154+ this .trimStackTraceTarget = target ;
155155 this .trimStackTraceRetain = retain ;
156156 return this ;
157157 }
@@ -190,11 +190,11 @@ public AssertionFailedError build() {
190190 }
191191
192192 private void maybeTrimStackTrace (Throwable throwable ) {
193- if (trimStackTraceBefore == null ) {
193+ if (trimStackTraceTarget == null ) {
194194 return ;
195195 }
196196
197- var pruneTargetClassName = trimStackTraceBefore .getName ();
197+ var pruneTargetClassName = trimStackTraceTarget .getName ();
198198 var stackTrace = throwable .getStackTrace ();
199199
200200 int lastIndexOf = -1 ;
You can’t perform that action at this time.
0 commit comments