From babff8e6353ed36de6f2bc03dd25e1a94f91839e Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 9 Jun 2022 13:16:19 +0200 Subject: [PATCH] Fix Kotlin example for dependency injection with static factory method Closes gh-28589 --- src/docs/asciidoc/core/core-beans.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index a9125b7d8f2..ac7a7249036 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -1427,6 +1427,7 @@ The following example shows the corresponding `ExampleBean` class: // a static factory method; the arguments to this method can be // considered the dependencies of the bean that is returned, // regardless of how those arguments are actually used. + @JvmStatic fun createInstance(anotherBean: AnotherBean, yetAnotherBean: YetAnotherBean, i: Int): ExampleBean { val eb = ExampleBean (...) // some other operations...