@ReadOnly annotation now could target ElementType.PARAMETER

it is done as a simplest way to avoid collision, because Kotlin have it's own `org.jetbrains.annotations.ReadOnly` which could be applied to parameters.
This commit is contained in:
Nicolay Mitropolsky
2017-12-01 17:27:32 +03:00
parent 2b6a4fe4ef
commit cc97c9fc4e
@@ -28,7 +28,7 @@ import java.lang.annotation.*;
*/
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.LOCAL_VARIABLE})
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
@ApiStatus.Experimental
public @interface ReadOnly {
}