aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-11-09 17:21:55 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-11-10 13:22:26 +0100
commitec0f22ebfa93c50b56765d84204014523133b5d6 (patch)
tree4cebf2cfa39a168459837dfc94d2b9f01d72914d
parent30161cdacfd051bcf339fcc0b8c9ad1307370765 (diff)
downloadsonarqube-ec0f22ebfa93c50b56765d84204014523133b5d6.tar.gz
sonarqube-ec0f22ebfa93c50b56765d84204014523133b5d6.zip
Minor: replace String#indexOf()<0 by String#contains()
-rw-r--r--sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java b/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java
index 466805f54de..3d1d3e917a5 100644
--- a/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java
+++ b/sonar-core/src/main/java/org/sonar/core/i18n/RuleI18nManager.java
@@ -95,7 +95,7 @@ public class RuleI18nManager implements ServerComponent {
}
static boolean isRuleProperty(String propertyKey) {
- return StringUtils.startsWith(propertyKey, RULE_PREFIX) && StringUtils.endsWith(propertyKey, NAME_SUFFIX) && propertyKey.indexOf(".param.") < 0;
+ return StringUtils.startsWith(propertyKey, RULE_PREFIX) && StringUtils.endsWith(propertyKey, NAME_SUFFIX) && !propertyKey.contains(".param.");
}
public static class RuleKey {