private static List extractExecuteResponse()

in src/main/java/com/google/devtools/build/remote/client/LogParserUtils.java [106:119]


  private static List<ExecuteResponse> extractExecuteResponse(List<Operation> operations)
      throws IOException {
    ArrayList<ExecuteResponse> result = new ArrayList<>();
    for (Operation o : operations) {
      StringBuilder error = new StringBuilder();
      ExecuteResponse response = getExecuteResponse(o, ExecuteResponse.class, error);
      if (response != null
          && (response.hasResult()
              || (response.hasStatus()) && response.getStatus().getCode() != Code.OK.value())) {
        result.add(response);
      }
    }
    return result;
  }