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 example for static factory method #28399

Closed
maxbiu opened this issue Apr 29, 2022 · 1 comment
Closed

Fix Kotlin example for static factory method #28399

maxbiu opened this issue Apr 29, 2022 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: documentation A documentation task
Milestone

Comments

@maxbiu
Copy link

maxbiu commented Apr 29, 2022

https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-factory-class-static-factory-method

kotlin changed to:

class ClientService private constructor() {
    companion object {
        private val clientService = ClientService()
        @JvmStatic
        fun createInstance() = clientService
    }
}
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 29, 2022
@sbrannen sbrannen changed the title Documentation error example beans-factory-class-static-factory-method kotlin Fix Kotlin example for static factory method May 11, 2022
@sbrannen sbrannen added type: documentation A documentation task in: core Issues in core modules (aop, beans, core, context, expression) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels May 11, 2022
@sbrannen sbrannen self-assigned this May 11, 2022
@sbrannen sbrannen added this to the 5.3.21 milestone May 11, 2022
@sbrannen
Copy link
Member

Hi @SchroedingersGitHub,

Congratulations on opening your first GitHub issue "ever". 👍

This has been addressed in 48c797e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

3 participants