public enum Test { A("A"), B("B"), C("C"); private Test(@Ann String x) { } } @interface Ann {}