@Target(value=FIELD)
@Retention(value=CLASS)
public @interface override
Override
but for properties.
Usage:
interface Foo {
@prop String color;
}
public class FooImpl extends Foo {
@override String color = "Plaid";
}
Note, without an accompanying @get
, @set
, or @prop
, use of @override
implies
@prop
.Copyright © 2021. All rights reserved.