Reputation: 1781
My ide says 'Specifications<T : Any!>' is deprecated. Deprecated in Java.
What should I use instead?
import org.springframework.data.jpa.domain.Specifications
fun hasName(name: String?): Specifications<User>? = name?.let{User::name.equal(it) }
Upvotes: 0
Views: 1325
Reputation: 170919
But here I think you just need to change the return type to Specification
(which Specifications
implements).
Upvotes: 1