You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
307 B
17 lines
307 B
package records;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
public record TestRecordAnno(@TA @RC int x, @M @P int y) {}
|
|
|
|
@Target(ElementType.TYPE_USE)
|
|
@interface TA {}
|
|
|
|
@Target(ElementType.RECORD_COMPONENT)
|
|
@interface RC {}
|
|
|
|
@Target(ElementType.METHOD)
|
|
@interface M {}
|
|
|
|
@Target(ElementType.PARAMETER)
|
|
@interface P {}
|
|
|