sentry-java
sentry-java copied to clipboard
Use @JvmOverloads for Kotlin Classes' ctors for java-interop
Description
We used to manually create ctor overloads, but we could actually use @JvmOverloads annotation which would generate the overloads for us.
We need to make sure that the JvmOverloads is enough and properly generates the overloads. Also, check if there's a possibility to lint/analyze the ctors, so we ensure this as best practice in the future.
https://stackoverflow.com/questions/46023983/how-default-argument-and-jvmoverloads-work-on-kotlin
Closing as this seems to be working just fine and more less error-prone