Skip to content

Commit

Permalink
Deprecate Specification.where.
Browse files Browse the repository at this point in the history
The where method will be removed with next major version containing some refinements in the Specification API.

See: #3578
  • Loading branch information
christophstrobl committed Jan 8, 2025
1 parent b311791 commit dcf4991
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ static <T> Specification<T> not(@Nullable Specification<T> spec) {
* @param spec can be {@literal null}.
* @return guaranteed to be not {@literal null}.
* @since 2.0
* @deprecated since 3.5.
*/
@Deprecated(since = "3.5.0", forRemoval = true)
static <T> Specification<T> where(@Nullable Specification<T> spec) {
return spec == null ? (root, query, builder) -> null : spec;
}
Expand Down

0 comments on commit dcf4991

Please sign in to comment.