-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Specification toPredicate usage is violated in SimpleJpaRepository::delete #3036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You're right. This is because |
@mp911de You should change documentation string of toPredicate if I'm right, because it's a confusing doc. I could find the issue fast, but in my code, there were no obvious signs of what was going on. Other developers might get confused as well. Who knows how much time is it gonna cost to someone. It's obvious that documentation is misleading! At least change it to 'should' instead of 'must' or provide some additional docs on exceptional cases |
I also think that toPredicate's method documentation should be changed, It does cause confusion |
Reflect allowed null arguments in both documentation as well as supporting annotations. See: #3036
This is the definition of delete method in SimpleJpaRepository. Clearly, query param sent is null, but in Specification::toPredicate we have this doc:
The text was updated successfully, but these errors were encountered: