Skip to content

Commit

Permalink
Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jevanlingen committed Dec 10, 2024
1 parent 68274b2 commit 92d7d55
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ class User {
private String email;
}
// The `Object ignore` makes it possible to ignore the removal-matcher-optimization code
// The second `Object ignore` argument disables the removal-matcher-optimization code like:
// expect(service.addUser(eq(new User()))) to expect(service.addUser(new User()));
class UserService {
boolean addUser(User user, Object ignore) { return true; }
boolean addUser(User user) { return true; }
List<User> findByEmail(String email, Object ignore) { return new ArrayList<>(); }
List<User> findByAge(double age, Object ignore) { return new ArrayList<>(); }
}"""
Expand Down

0 comments on commit 92d7d55

Please sign in to comment.