protected void parseId()

in src/main/java/com/googlesource/gerrit/plugins/events/StreamEvents.java [57:76]


  protected void parseId(String arg) throws IOException {
    resume = 0;
    if ("0".equals(arg)) {
      return;
    }

    String[] ids = arg.split(":");
    if (ids.length == 2) {
      if (!ids[0].equals(events.getUuid().toString())) { // store has changed
        return;
      }

      try {
        resume = Long.parseLong(ids[1]);
        return;
      } catch (NumberFormatException e) { // fall through
      }
    }
    throw new IllegalArgumentException("Invalid event Id: " + arg);
  }