/** * Parses class annotations and adds all checks. * @see #resolveFor(Class) */ public void addClassChecks(Class target) { List<Check> list = cache.get(target); if (list == null) { list = new ArrayList<Check>(); ClassDescriptor cd = ClassIntrospector.lookup(target); Field[] fields = cd.getAllFields(true); for (Field field : fields) { collectFieldAnnotationChecks(list, field); } cache.put(target, list); } addAll(list); }