Upgrade to Kotlin 1.7.

Adopt to stricter nullability checks.

Closes #2648
This commit is contained in:
Mark Paluch
2022-06-24 11:52:08 +02:00
parent 2a299b2ff2
commit 8b560f96c3
4 changed files with 16 additions and 14 deletions

View File

@@ -23,4 +23,4 @@ package org.springframework.data.repository
* @author Sebastien Deleuze
* @since 2.1.4
*/
fun <T, ID> CrudRepository<T, ID>.findByIdOrNull(id: ID): T? = findById(id).orElse(null)
fun <T, ID> CrudRepository<T, ID>.findByIdOrNull(id: ID): T? = findById(id!!).orElse(null)