-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed as not planned
Closed as not planned
Copy link
Description
Overview
Context: When implementing extensions in Kotlin I noticed that when generating the members in IntelliJ the method signatures had nullable types like ContainerExtensionContext?:
class MyExtension : BeforeAllCallback {
override fun beforeAll(context: ContainerExtensionContext?) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}The desired behavior when implementing something like this is to have the generated type represent what the documentation says. I would like the generated parameter to be ContainerExtensionContext instead of ContainerExtensionContext?.
It is also useful to have when looking at Javadoc or implementation as well as when using some static code analysis tools.
An overview of the support Kotlin compiler annotations can be found here, but these can benefit authors in other languages as well.
Deliverables
- nullable library chosen
-
@NonNulland@Nullable(or other annotations) are applied to method parameters