protected static void preloadFrom()

in src/main/java/com/googlesource/gerrit/plugins/task/Preloader.java [38:52]


  protected static void preloadFrom(Task definition, Task preloadFrom) {
    for (Field field : definition.getClass().getFields()) {
      String name = field.getName();
      if ("isVisible".equals(name) || "isTrusted".equals(name) || "config".equals(name)) {
        continue;
      }

      try {
        field.setAccessible(true);
        preloadField(field.getType(), field, definition, preloadFrom);
      } catch (IllegalAccessException | IllegalArgumentException e) {
        throw new RuntimeException();
      }
    }
  }