[kotlin][spring] Remove EOL from template (#16045)

* remove EOL from template

* better code format
This commit is contained in:
William Cheng 2023-07-10 11:44:29 +08:00 committed by GitHub
parent 75067b2581
commit 852eb956db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 28 additions and 37 deletions

View File

@ -390,7 +390,7 @@ public class KotlinSpringServerCodegen extends AbstractKotlinCodegen
this.useBeanValidation = useBeanValidation; this.useBeanValidation = useBeanValidation;
} }
public void setUseFeignClient( boolean useFeignClient ) { public void setUseFeignClient(boolean useFeignClient) {
this.useFeignClient = useFeignClient; this.useFeignClient = useFeignClient;
} }

View File

@ -11,7 +11,6 @@ import io.swagger.v3.oas.models.Components
import io.swagger.v3.oas.models.security.SecurityScheme import io.swagger.v3.oas.models.security.SecurityScheme
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Configuration @Configuration
class SpringDocConfiguration { class SpringDocConfiguration {

View File

@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
import java.util.Optional import java.util.Optional
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Controller @Controller
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}") @RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
class PetApiController( class PetApiController(

View File

@ -15,7 +15,6 @@ import java.util.Optional
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class. * Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
*/ */
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
interface PetApiDelegate { interface PetApiDelegate {
fun getRequest(): Optional<NativeWebRequest> = Optional.empty() fun getRequest(): Optional<NativeWebRequest> = Optional.empty()

View File

@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
import java.util.Optional import java.util.Optional
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Controller @Controller
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}") @RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
class StoreApiController( class StoreApiController(

View File

@ -14,7 +14,6 @@ import java.util.Optional
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class. * Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
*/ */
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
interface StoreApiDelegate { interface StoreApiDelegate {
fun getRequest(): Optional<NativeWebRequest> = Optional.empty() fun getRequest(): Optional<NativeWebRequest> = Optional.empty()

View File

@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
import java.util.Optional import java.util.Optional
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Controller @Controller
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}") @RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
class UserApiController( class UserApiController(

View File

@ -14,7 +14,6 @@ import java.util.Optional
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class. * Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
*/ */
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
interface UserApiDelegate { interface UserApiDelegate {
fun getRequest(): Optional<NativeWebRequest> = Optional.empty() fun getRequest(): Optional<NativeWebRequest> = Optional.empty()

View File

@ -11,7 +11,6 @@ import io.swagger.v3.oas.models.Components
import io.swagger.v3.oas.models.security.SecurityScheme import io.swagger.v3.oas.models.security.SecurityScheme
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Configuration @Configuration
class SpringDocConfiguration { class SpringDocConfiguration {

View File

@ -17,7 +17,6 @@ import javax.servlet.ServletContext
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"]) @javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Configuration @Configuration
@EnableSwagger2 @EnableSwagger2
class SpringFoxConfiguration { class SpringFoxConfiguration {