Esempio n. 1
0
 private static Imports ofConstructors(@Nonnull final Iterable<Constructor> constructors) {
   Check.notNull(constructors, "attributes");
   final List<Import> imports = Lists.newArrayList();
   for (final Constructor constructor : constructors) {
     imports.addAll(ofAnnotations(constructor.getAnnotations()).asList());
     imports.addAll(ofAttributes(constructor.getAttributes()).asList());
   }
   return new Imports(imports);
 }