aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-findbugs-plugin
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-08-02 18:18:07 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-08-02 18:18:07 +0200
commit1f5682409af97410aca5e545ccbd40b6b037e6a9 (patch)
treeba9f1fe3c26d994b9aaafe9a09d5cf528fc21a41 /plugins/sonar-findbugs-plugin
parent6e38de82d91aed63e200f0b45f54a4a2a7875941 (diff)
downloadsonarqube-1f5682409af97410aca5e545ccbd40b6b037e6a9.tar.gz
sonarqube-1f5682409af97410aca5e545ccbd40b6b037e6a9.zip
Fix new violations
Diffstat (limited to 'plugins/sonar-findbugs-plugin')
-rw-r--r--plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsLevelUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsLevelUtils.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsLevelUtils.java
index db6edd9f4a5..5ad431a5e2e 100644
--- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsLevelUtils.java
+++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsLevelUtils.java
@@ -24,13 +24,13 @@ import org.sonar.api.rules.RulePriority;
public class FindbugsLevelUtils {
public RulePriority from(String priority) {
- if (priority.equals("1")) {
+ if ("1".equals(priority)) {
return RulePriority.BLOCKER;
}
- if (priority.equals("2")) {
+ if ("2".equals(priority)) {
return RulePriority.MAJOR;
}
- if (priority.equals("3")) {
+ if ("3".equals(priority)) {
return RulePriority.INFO;
}
throw new IllegalArgumentException("Priority not supported: " + priority);