Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Kotlin templates to be compatible with Kotlin K2 compiler #17466

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import java.util.Optional
class {{classname}}Controller(
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate?
) : {{classname}} {
private val delegate: {{classname}}Delegate
private lateinit var delegate: {{classname}}Delegate

init {
this.delegate = Optional.ofNullable(delegate).orElse(object : {{classname}}Delegate {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.google.gson.Gson
{{/imports}}

class {{classname}}VertxProxyHandler(private val vertx: Vertx, private val service: {{classname}}, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
private val timerID: Long
private lateinit var timerID: Long
private var lastAccessed: Long = 0
init {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import org.openapitools.server.api.model.ModelApiResponse
import org.openapitools.server.api.model.Pet

class PetApiVertxProxyHandler(private val vertx: Vertx, private val service: PetApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
private val timerID: Long
private lateinit var timerID: Long
private var lastAccessed: Long = 0
init {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import com.google.gson.Gson
import org.openapitools.server.api.model.Order

class StoreApiVertxProxyHandler(private val vertx: Vertx, private val service: StoreApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
private val timerID: Long
private lateinit var timerID: Long
private var lastAccessed: Long = 0
init {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import com.google.gson.Gson
import org.openapitools.server.api.model.User

class UserApiVertxProxyHandler(private val vertx: Vertx, private val service: UserApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
private val timerID: Long
private lateinit var timerID: Long
private var lastAccessed: Long = 0
init {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import org.openapitools.server.api.model.ModelApiResponse
import org.openapitools.server.api.model.Pet

class PetApiVertxProxyHandler(private val vertx: Vertx, private val service: PetApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
private val timerID: Long
private lateinit var timerID: Long
private var lastAccessed: Long = 0
init {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import com.google.gson.Gson
import org.openapitools.server.api.model.Order

class StoreApiVertxProxyHandler(private val vertx: Vertx, private val service: StoreApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
private val timerID: Long
private lateinit var timerID: Long
private var lastAccessed: Long = 0
init {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import com.google.gson.Gson
import org.openapitools.server.api.model.User

class UserApiVertxProxyHandler(private val vertx: Vertx, private val service: UserApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
private val timerID: Long
private lateinit var timerID: Long
private var lastAccessed: Long = 0
init {
try {
Expand Down
Loading