Disallowed @Deprecated for local variables and parameters

This commit is contained in:
Valentin Kipyatkov
2015-09-07 20:37:07 +03:00
parent 5d09edb3e6
commit 452cd49c5e
6 changed files with 12 additions and 7 deletions
+1 -2
View File
@@ -36,8 +36,7 @@ public annotation class data
* @property replaceWith if present, specifies a code fragment which should be used as a replacement for
* the deprecated API usage.
*/
@Target(CLASS, FUNCTION, PROPERTY, ANNOTATION_CLASS, CONSTRUCTOR, PROPERTY_SETTER, PROPERTY_GETTER,
LOCAL_VARIABLE, VALUE_PARAMETER)
@Target(CLASS, FUNCTION, PROPERTY, ANNOTATION_CLASS, CONSTRUCTOR, PROPERTY_SETTER, PROPERTY_GETTER)
@MustBeDocumented
public annotation class Deprecated(val value: String, val replaceWith: ReplaceWith = ReplaceWith(""))