RepeatableAnnotation

package com.yinbodotcc2.annotation.metaannotation;

import java.lang.annotation.Repeatable;

@Repeatable(ConcludeArrayAnnotation.class)
public @interface RepeatableAnnotation
{
String date();
String comment();
}

@interface ConcludeArrayAnnotation
{
RepeatableAnnotation[] value();
}

@RepeatableAnnotation(date = "2018-8-7",comment="增加这个类")
@RepeatableAnnotation(date = "2018-8-7",comment="增加了一个测试用例")
class T
{

}

你可能感兴趣的:(RepeatableAnnotation)