public void setDenyPolicyItems(List<RangerPolicyItem> denyPolicyItems) {
    if (this.denyPolicyItems == null) {
      this.denyPolicyItems = new ArrayList<>();
    }

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

    this.denyPolicyItems.clear();

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