Skip to content

Commit

Permalink
Add sample configuration with @JvmName on internal bean method
Browse files Browse the repository at this point in the history
I'm not sure why @Suppress("INAPPLICABLE_JVM_NAME") is required here.

See spring-projects/spring-framework#32010
  • Loading branch information
izeye committed Mar 14, 2024
1 parent 361d68f commit e1810b4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class SampleConfiguration {
@Bean
internal fun sampleBean() = SampleBean()

@Bean
@Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("anotherSampleBean")
internal fun anotherSampleBean() = SampleBean()

}

/**
Expand Down

0 comments on commit e1810b4

Please sign in to comment.