diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-14 08:58:53 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-14 08:58:53 +0100 |
commit | 5c099b6733143cd647012e0f53d78e1c2698c92b (patch) | |
tree | 74d03c4de2dffa71e037ffb9db14fdd94d1bc8dd /sonar-plugin-api/src | |
parent | 19b6d3f600d8f028679718d010d24cfccc791979 (diff) | |
download | sonarqube-5c099b6733143cd647012e0f53d78e1c2698c92b.tar.gz sonarqube-5c099b6733143cd647012e0f53d78e1c2698c92b.zip |
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java index 2a26e0d7e16..fd0bcd66f4f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java @@ -17,6 +17,7 @@ * License along with Sonar; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ + package org.sonar.api.rules; import org.apache.commons.lang.StringUtils; @@ -252,7 +253,7 @@ public final class Rule { } public Boolean isEnabled() { - return !status.equals("REMOVED"); + return !"REMOVED".equals(status); } public List<RuleParam> getParams() { |