Deprecate Specification.where.

The where method will be removed with next major version containing some refinements in the Specification API.

See: #3578
This commit is contained in:
Christoph Strobl
2025-01-08 16:18:13 +01:00
parent b311791374
commit dcf4991f39

View File

@@ -65,7 +65,9 @@ public interface Specification<T> extends Serializable {
* @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;
}