Add annotation for default parameter value
This commit is contained in:
@@ -22,3 +22,17 @@ package kotlin.annotations.jvm.internal
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
public annotation class ParameterName(val value: String)
|
||||
|
||||
/**
|
||||
* Default value for java method parameter.
|
||||
*/
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
public annotation class DefaultValue(val value: String)
|
||||
|
||||
/**
|
||||
* Define that null is default value for method parameter.
|
||||
*/
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
public annotation class DefaultNull
|
||||
|
||||
Reference in New Issue
Block a user