diff options
author | Godin <mandrikov@gmail.com> | 2010-12-21 01:31:35 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-21 01:31:35 +0000 |
commit | bf510af3e8eb5b518dbfcc216a40907dd8d7cd47 (patch) | |
tree | e0ef70480226860c2a88a390fd6182e0660a559b /sonar-plugin-api | |
parent | c20e334b230bc4cd12d0d13746b8e7828550cb80 (diff) | |
download | sonarqube-bf510af3e8eb5b518dbfcc216a40907dd8d7cd47.tar.gz sonarqube-bf510af3e8eb5b518dbfcc216a40907dd8d7cd47.zip |
SONAR-1722: Rename ActiveRule.overrides to AcriveRule.overridden
SONAR-2052: Support inheritance of quality profiles in backup of global configuration
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java index bc3c36c04c3..badb3bb2492 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java @@ -60,8 +60,8 @@ public class ActiveRule implements Cloneable { @Column(name = "inherited", updatable = true, nullable = true) private Boolean inherited; - @Column(name = "overrides", updatable = true, nullable = true) - private Boolean overrides; + @Column(name = "overridden", updatable = true, nullable = true) + private Boolean overridden; /** * @deprecated visibility should be reduced to protected or package @@ -112,8 +112,8 @@ public class ActiveRule implements Cloneable { * * @since 2.5 */ - public Boolean isOverrides() { - return overrides == null ? false : overrides; + public boolean isOverridden() { + return overridden == null ? false : overridden; } /** @@ -121,8 +121,8 @@ public class ActiveRule implements Cloneable { * * @since 2.5 */ - public void setOverrides(Boolean overrides) { - this.overrides = overrides; + public void setOverridden(Boolean overridden) { + this.overridden = overridden; } /** @@ -280,6 +280,7 @@ public class ActiveRule implements Cloneable { public Object clone() { final ActiveRule clone = new ActiveRule(getRulesProfile(), getRule(), getSeverity()); clone.setInherited(isInherited()); + clone.setOverridden(isOverridden()); if (CollectionUtils.isNotEmpty(getActiveRuleParams())) { clone.setActiveRuleParams(new ArrayList<ActiveRuleParam>(CollectionUtils.collect(getActiveRuleParams(), new Transformer() { public Object transform(Object input) { |