File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/org/assertj/core/api Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -280,12 +280,10 @@ private boolean isAssertjAssertClass() {
280
280
return getClass ().getName ().startsWith (ORG_ASSERTJ );
281
281
}
282
282
283
- private boolean isElementOfCustomAssert (StackTraceElement stackTraceElement ) {
283
+ protected boolean isElementOfCustomAssert (StackTraceElement stackTraceElement ) {
284
284
Class <?> currentAssertClass = getClass ();
285
285
while (currentAssertClass != AbstractAssert .class ) {
286
- if (stackTraceElement .getClassName ().equals (currentAssertClass .getName ())) {
287
- return true ;
288
- }
286
+ if (stackTraceElement .getClassName ().equals (currentAssertClass .getName ())) return true ;
289
287
currentAssertClass = currentAssertClass .getSuperclass ();
290
288
}
291
289
return false ;
You can’t perform that action at this time.
0 commit comments