HeaderLength.Type.POSTFIX);
}
for (Method method : getMethods(c, HeaderLength.class)) {
HeaderLength hl = method.getAnnotation(HeaderLength.class);
if (methods[hl.value().ordinal()] != null) {
throw new AnnotatedMethodException(c, "duplicate: "
+ methods[hl.value().ordinal()] + " property and " + method.getName()
+ "() method");
}
checkSignature(method);
methods[hl.value().ordinal()] =
new AnnotatedHeaderLengthMethod(method, hl.value());
}
if (methods[HeaderLength.Type.HEADER.ordinal()] == null) {
throw new AnnotatedMethodException(c,
"@HeaderLength annotated method not found");