public void setAccesses(List<RangerPolicyItemAccess> accesses) {
      if (this.accesses == null) {
        this.accesses = new ArrayList<>();
      }

      if (this.accesses == accesses) {
        return;
      }

      this.accesses.clear();

      if (accesses != null) {
        this.accesses.addAll(accesses);
      }
    }
@param accesses the accesses to set
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerPolicy.java