https://kotlinlang.org logo
#spring
Title
# spring
w

wakingrufus

10/26/2023, 2:10 PM
would it be reasonable to contribute an extension function i wrote
Copy code
inline fun <reified T : Any> PropertyResolver.getProperty(key: String, default: T): T {
    return getProperty(key, T::class.java, default)
}
upstream to spring? (can anyone on the spring team here give me some guidance on that?)
h

hho

10/26/2023, 6:23 PM
I'm not in the spring team, but the variants without default are already there, so it should be no issue to add the defaulted one as well. I guess you'll need to make it an expression function, and add documentation and a test.
w

wakingrufus

10/29/2023, 2:22 AM
Oh nice. I'll follow the lead of those. Thanks for the hint.
2 Views