/* Can't use "findUniqueMethodWith" because annotation can be
* disabled...
*/
AnnotatedMethod found = null;
for (AnnotatedMethod am : _classInfo.getMemberMethods()) {
JsonValue ann = am.getAnnotation(JsonValue.class);
if (ann == null || !ann.value()) { // ignore if disabled
continue;
}
if (found != null) {
throw new IllegalArgumentException("Multiple methods with active @JsonValue annotation ("+found.getName()+"(), "+am.getName()+")");
}