mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Refine RestOperations Kotlin extensions nullability
This commit aligns RestOperationsExtensions.kt nullability with the Java APIs one, like what has been done in gh-35846 for JdbcOperations. Closes gh-35852
This commit is contained in:
+1
-2
@@ -270,7 +270,6 @@ class RestOperationsExtensionsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled("May require Kotlin 2") // TODO Enable after Kotlin 2 upgrade
|
||||
fun `RestOperations are available`() {
|
||||
val extensions = Class.forName("org.springframework.web.client.RestOperationsExtensionsKt")
|
||||
ReflectionUtils.doWithMethods(RestOperations::class.java) { method ->
|
||||
@@ -281,7 +280,7 @@ class RestOperationsExtensionsTests {
|
||||
assertThat(f.typeParameters.size).isEqualTo(1)
|
||||
val type = f.typeParameters[0].upperBounds.first()
|
||||
assertThat(type.classifier).isEqualTo(Any::class)
|
||||
assertThat(type.isMarkedNullable).isTrue()
|
||||
assertThat(type.isMarkedNullable).isFalse()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user