Skip to content

Commit dcf4991

Browse files
Deprecate Specification.where.
The where method will be removed with next major version containing some refinements in the Specification API. See: #3578
1 parent b311791 commit dcf4991

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/domain/Specification.java

+2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ static <T> Specification<T> not(@Nullable Specification<T> spec) {
6565
* @param spec can be {@literal null}.
6666
* @return guaranteed to be not {@literal null}.
6767
* @since 2.0
68+
* @deprecated since 3.5.
6869
*/
70+
@Deprecated(since = "3.5.0", forRemoval = true)
6971
static <T> Specification<T> where(@Nullable Specification<T> spec) {
7072
return spec == null ? (root, query, builder) -> null : spec;
7173
}

0 commit comments

Comments
 (0)