public List onCommitReceived()

in src/main/java/com/googlesource/gerrit/plugins/readonly/ReadOnly.java [59:65]


  public List<CommitValidationMessage> onCommitReceived(CommitReceivedEvent receiveEvent)
      throws CommitValidationException {
    if (state.isReadOnly()) {
      throw new CommitValidationException(config.message());
    }
    return ImmutableList.of();
  }