Skip to content

Commit e1810b4

Browse files
committed
Add sample configuration with @JvmName on internal bean method
I'm not sure why @Suppress("INAPPLICABLE_JVM_NAME") is required here. See spring-projects/spring-framework#32010
1 parent 361d68f commit e1810b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/kotlin/com/izeye/helloworld/springbootkotlin/SampleConfiguration.kt

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class SampleConfiguration {
1515
@Bean
1616
internal fun sampleBean() = SampleBean()
1717

18+
@Bean
19+
@Suppress("INAPPLICABLE_JVM_NAME")
20+
@JvmName("anotherSampleBean")
21+
internal fun anotherSampleBean() = SampleBean()
22+
1823
}
1924

2025
/**

0 commit comments

Comments
 (0)