[core] Remove deprecated methods in RuleReference

RuleReference#setRuleSetReference
RuleReference#hasOverriddenProperty
This commit is contained in:
Andreas Dangel
2024-02-08 08:29:55 +01:00
parent 1900aa79c4
commit cdc70c633a
2 changed files with 3 additions and 16 deletions

View File

@ -279,14 +279,6 @@ public class RuleReference implements Rule {
}
/**
* @deprecated There's no use in setting the ruleset reference after construction
*/
@Deprecated
public void setRuleSetReference(RuleSetReference ruleSetReference) {
this.ruleSetReference = ruleSetReference;
}
private static boolean isSame(String s1, String s2) {
return StringUtil.isSame(s1, s2, true, false, true);
}
@ -307,14 +299,6 @@ public class RuleReference implements Rule {
|| rule.hasDescriptor(descriptor);
}
/**
* @deprecated Use {@link #isPropertyOverridden(PropertyDescriptor)} instead
*/
@Deprecated
public boolean hasOverriddenProperty(PropertyDescriptor<?> descriptor) {
return isPropertyOverridden(descriptor);
}
@Override
public boolean isPropertyOverridden(PropertyDescriptor<?> descriptor) {
return propertyValues != null && propertyValues.containsKey(descriptor);