private static boolean isSameAsParent(ActiveRuleChange change, RuleActivationContext context) {
    ActiveRuleWrapper parentActiveRule = context.getParentActiveRule();
    if (parentActiveRule == null) {
      return false;
    }
    if (!StringUtils.equals(change.getSeverity(), parentActiveRule.get().getSeverityString())) {
      return false;
    }
    for (Map.Entry<String, String> entry : change.getParameters().entrySet()) {
      if (entry.getValue() != null && !entry.getValue().equals(parentActiveRule.getParamValue(entry.getKey()))) {
        return false;
      }
    }
    return true;
  }
private static boolean isSameAsParent ( ActiveRuleChange change , RuleActivationContext context ) { ActiveRuleWrapper parentActiveRule = context . getParentActiveRule ( ) ; if ( parentActiveRule == null ) { return false ; } if ( ! StringUtils . equals ( change . getSeverity ( ) , parentActiveRule . get ( ) . getSeverityString ( ) ) ) { return false ; } for ( Map . Entry < String , String > entry : change . getParameters ( ) . entrySet ( ) ) { if ( entry . getValue ( ) != null && ! entry . getValue ( ) . equals ( parentActiveRule . getParamValue ( entry . getKey ( ) ) ) ) { return false ; } } return true ; }
True if trying to override an inherited rule but with exactly the same values