diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-11-09 17:21:55 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-11-10 13:22:26 +0100 |
commit | ec0f22ebfa93c50b56765d84204014523133b5d6 (patch) | |
tree | 4cebf2cfa39a168459837dfc94d2b9f01d72914d | |
parent | 30161cdacfd051bcf339fcc0b8c9ad1307370765 (diff) | |
download | sonarqube-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.java | 2 |
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 { |