Skip to content

Commit

Permalink
Merge pull request #2292 from mockito/fix-stackoverflow
Browse files Browse the repository at this point in the history
Fix stackoverflow in ArgumentsAreDifferent reporting
  • Loading branch information
mockitoguy committed May 11, 2021
2 parents 067ff24 + a53876d commit 544cc75
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,6 +31,6 @@ public ArgumentsAreDifferent(String message, String wanted, String actual) {

@Override
public String getMessage() {
return removeFirstLine(super.toString());
return removeFirstLine(super.getMessage());
}
}

0 comments on commit 544cc75

Please sign in to comment.