[#17465] Fix Kotlin templates to be compatible with Kotlin K2 compiler (#17466)

This commit is contained in:
Raphaël Ouazana
2023-12-26 03:09:28 +01:00
committed by GitHub
parent a4f1a17502
commit d0f659ec4d
11 changed files with 11 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ import java.util.Optional
class PetApiController(
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: PetApiDelegate?
) : PetApi {
private val delegate: PetApiDelegate
private lateinit var delegate: PetApiDelegate
init {
this.delegate = Optional.ofNullable(delegate).orElse(object : PetApiDelegate {})

View File

@@ -10,7 +10,7 @@ import java.util.Optional
class StoreApiController(
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: StoreApiDelegate?
) : StoreApi {
private val delegate: StoreApiDelegate
private lateinit var delegate: StoreApiDelegate
init {
this.delegate = Optional.ofNullable(delegate).orElse(object : StoreApiDelegate {})

View File

@@ -10,7 +10,7 @@ import java.util.Optional
class UserApiController(
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: UserApiDelegate?
) : UserApi {
private val delegate: UserApiDelegate
private lateinit var delegate: UserApiDelegate
init {
this.delegate = Optional.ofNullable(delegate).orElse(object : UserApiDelegate {})