summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-10-10 09:53:23 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-10-10 11:41:41 +0200
commit4eb0a2ddd8cf47489b8432d2b018642f1af42c85 (patch)
treece5868edfaf13b2b1b214b73be4d4ed8f882fcac
parent51317c4a39d1d69206bf28ed72064f0fe734c06c (diff)
downloadsonarqube-4eb0a2ddd8cf47489b8432d2b018642f1af42c85.tar.gz
sonarqube-4eb0a2ddd8cf47489b8432d2b018642f1af42c85.zip
Fix backward-compatibility of RulesProfile constructors
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java16
1 files changed, 12 insertions, 4 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 5c3f9f7ae61..9b25030aa54 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
@@ -30,7 +30,6 @@ import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RulePriority;
import javax.persistence.*;
-
import java.util.ArrayList;
import java.util.List;
@@ -103,6 +102,15 @@ public class RulesProfile implements Cloneable {
this.alerts = Lists.newArrayList();
}
+ /**
+ * @deprecated since 2.3. Use the factory method create()
+ */
+ @Deprecated
+ public RulesProfile(String name, String language, boolean defaultProfile, /* kept for backward-compatibility */boolean provided) {
+ this(name, language);
+ this.defaultProfile = defaultProfile;
+ }
+
public Integer getId() {
return id;
}
@@ -211,8 +219,8 @@ public class RulesProfile implements Cloneable {
}
/**
- * @deprecated since 3.3. Always return true.
* @return
+ * @deprecated since 3.3. Always return true.
*/
@Deprecated
public Boolean getEnabled() {
@@ -220,8 +228,8 @@ public class RulesProfile implements Cloneable {
}
/**
- * @deprecated since 3.3. Always return true.
* @return
+ * @deprecated since 3.3. Always return true.
*/
@Deprecated
public boolean isEnabled() {
@@ -229,8 +237,8 @@ public class RulesProfile implements Cloneable {
}
/**
- * @deprecated since 3.3.
* @return
+ * @deprecated since 3.3.
*/
@Deprecated
public RulesProfile setEnabled(Boolean b) {