aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-11-03 15:34:10 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-11-03 15:34:18 +0100
commit1c87ee80aeefcac5ea4934a4b8d3ccdd20dfbde1 (patch)
treec416d3460d15e668a16d47acc09c5c867867e162 /sonar-plugin-api/src
parentb0d440578ea601e2f3fdc3afe624cfb13a4aea51 (diff)
downloadsonarqube-1c87ee80aeefcac5ea4934a4b8d3ccdd20dfbde1.tar.gz
sonarqube-1c87ee80aeefcac5ea4934a4b8d3ccdd20dfbde1.zip
Fix coding violations
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java12
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java1
2 files changed, 7 insertions, 6 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 0455940f88f..20c3b4cd571 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
@@ -25,8 +25,6 @@ import org.apache.commons.collections.Transformer;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.lang.builder.ReflectionToStringBuilder;
-import org.apache.commons.lang.builder.ToStringStyle;
import org.sonar.api.database.model.ResourceModel;
import org.sonar.api.rules.ActiveRule;
import org.sonar.api.rules.Rule;
@@ -143,20 +141,20 @@ public class RulesProfile implements Cloneable {
this.name = s;
return this;
}
-
+
public int getVersion() {
return version;
}
-
+
public RulesProfile setVersion(int version) {
this.version = version;
return this;
}
-
+
public Boolean getUsed() {
return used;
}
-
+
public RulesProfile setUsed(Boolean used) {
this.used = used;
return this;
@@ -308,6 +306,7 @@ public class RulesProfile implements Cloneable {
/**
* Note: disabled rules are excluded.
+ *
* @return the list of active rules for a given severity
*/
public List<ActiveRule> getActiveRules(RulePriority severity) {
@@ -344,6 +343,7 @@ public class RulesProfile implements Cloneable {
/**
* Note: disabled rules are excluded.
+ *
* @return an active rule from a plugin key and a rule key if the rule is activated, null otherwise
*/
public ActiveRule getActiveRule(String repositoryKey, String ruleKey) {
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java
index c41d5a3684f..cd6f77b4f5f 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java
@@ -67,6 +67,7 @@ public final class DateUtils {
}
static class ThreadSafeDateFormat extends DateFormat {
+ private static final long serialVersionUID = -8856468429474634301L;
private final String format;
ThreadSafeDateFormat(String format) {