Description
The query method validation should also check the parameter types being suitable to the property expression:
interface UserRepository extends Repository<User, Long> { List<User> findByLastname(User user); }
This should mark the method as invalid as firstname is probably of type String and not User. A quickfix to adapt the parameter type should be provided.