diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-02-20 22:30:43 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-02-20 22:30:43 +0100 |
commit | 22dfc24e49896cfa4c77e11a0e60e67c21f6db33 (patch) | |
tree | 19ed694f064008333147a9edc37253229cd45f40 /sonar-deprecated | |
parent | 726c17ed044d5e23a4ee1465a8a8c487ac1a9646 (diff) | |
download | sonarqube-22dfc24e49896cfa4c77e11a0e60e67c21f6db33.tar.gz sonarqube-22dfc24e49896cfa4c77e11a0e60e67c21f6db33.zip |
Fix some quality flaws, particularly on newly inspected code
Diffstat (limited to 'sonar-deprecated')
4 files changed, 11 insertions, 10 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/rules/RulesManager.java b/sonar-deprecated/src/main/java/org/sonar/api/rules/RulesManager.java index 3ee0330b59e..d50f33c1896 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/rules/RulesManager.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/rules/RulesManager.java @@ -19,16 +19,8 @@ */ package org.sonar.api.rules; -import org.sonar.api.Plugin; -import org.sonar.api.resources.Language; - -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.Set; - /** - * @deprecated since 2.3 + * @deprecated since 2.3 */ @Deprecated public abstract class RulesManager { @@ -37,7 +29,7 @@ public abstract class RulesManager { * Gets a rule belonging to a defined plugin based on its key * * @param pluginKey the plugin key - * @param ruleKey the rule key + * @param ruleKey the rule key * @return the rule */ public abstract Rule getPluginRule(String pluginKey, String ruleKey); diff --git a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java index 42a4ab0ff39..2584621abc4 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java @@ -26,6 +26,9 @@ import com.thoughtworks.xstream.annotations.XStreamImplicit; import java.util.ArrayList; import java.util.List; +/** + * @deprecated since 2.3 + */ @Deprecated @XStreamAlias("profile") public class Profile { diff --git a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java index 7f7211dff0f..dc7345c1cb3 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java @@ -22,6 +22,9 @@ package org.sonar.api.rules.xml; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAsAttribute; +/** + * @deprecated since 2.3 + */ @Deprecated @XStreamAlias("property") public class Property { diff --git a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java index 81cb0ef1ff9..88d4c93e1a7 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java @@ -26,6 +26,9 @@ import com.thoughtworks.xstream.annotations.XStreamImplicit; import java.util.ArrayList; import java.util.List; +/** + * @deprecated since 2.3 + */ @Deprecated @XStreamAlias("rule") public class Rule implements Comparable<String> { |