diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-02 14:31:14 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-02 14:32:36 +0100 |
commit | 2bc382aaeace31072352a0b7e18c5878815a692a (patch) | |
tree | 63a790c4e3fe2d9f8aee2e3c08d36501a94e715f /sonar-plugin-api | |
parent | 303de3527f9d9bc4394bf997dfa287a8f7b3b375 (diff) | |
download | sonarqube-2bc382aaeace31072352a0b7e18c5878815a692a.tar.gz sonarqube-2bc382aaeace31072352a0b7e18c5878815a692a.zip |
SONAR-2094 Support backups without the field <enabled>
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java index fbf2d2bea04..4a5cfa80b62 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java @@ -70,7 +70,7 @@ public class RulesProfile implements Cloneable { private Boolean provided = Boolean.FALSE; @Column(name = "enabled", updatable = true, nullable = false) - private boolean enabled = true; + private Boolean enabled = Boolean.TRUE; @Column(name = "language", updatable = true, nullable = false) private String language; @@ -179,11 +179,15 @@ public class RulesProfile implements Cloneable { this.provided = b; } - public boolean isEnabled() { + public Boolean getEnabled() { return enabled; } - public RulesProfile setEnabled(boolean b) { + public boolean isEnabled() { + return enabled==Boolean.TRUE; + } + + public RulesProfile setEnabled(Boolean b) { this.enabled = b; return this; } |