void add()

in src/main/java/com/google/devtools/build/remote/client/ActionGrouping.java [98:126]


      void add(LogEntry entry) throws IOException {
        log.add(entry);

        Digest d = LogParserUtils.extractDigest(entry);
        if (d != null) {
          if (digest != null && !d.equals(digest)) {
            System.err.println("Warning: conflicting digests: " + d + " and " + digest);
          }
          if (d != null && !d.getHash().equals(actionId)) {
            System.err.println(
                "Warning: bad digest: " + d + " doesn't match action Id " + actionId);
          }
          digest = d;
        }

        List<ExecuteResponse> r = LogParserUtils.extractExecuteResponse(entry);
        if (r.size() > 0) {
          if(r.size() > 1) {
            System.err.println(
                "Warning: unexpected log format: multiple ExecutionResponse for action " + actionId
                    + " in LogEntry " + entry);
          }
          if (executeResponse != null && executeResponse.hasResult()) {
            System.err.println(
                "Warning: unexpected log format: multiple action results for action " + actionId);
          }
          executeResponse = r.get(r.size() - 1);
        }
      }