diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-11 12:54:11 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-11 12:54:23 +0200 |
commit | ac46595adb827cbc615fa6cb2702d00f7bf41937 (patch) | |
tree | 3b89669f5864f39994c6f6e58c01e8e04acab0b2 /sonar-plugin-api/src | |
parent | f9b5a97053f4678d417e13b17f211a081768885b (diff) | |
download | sonarqube-ac46595adb827cbc615fa6cb2702d00f7bf41937.tar.gz sonarqube-ac46595adb827cbc615fa6cb2702d00f7bf41937.zip |
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java index 038c7182c20..2bd49827409 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java @@ -157,21 +157,21 @@ public final class PropertyDefinition implements BatchExtension, ServerExtension return Result.SUCCESS; } - private static Result validateBoolean(@Nullable String value) { + private static Result validateBoolean(String value) { if (!StringUtils.equalsIgnoreCase(value, "true") && !StringUtils.equalsIgnoreCase(value, "false")) { return Result.newError("notBoolean"); } return Result.SUCCESS; } - private static Result validateInteger(@Nullable String value) { + private static Result validateInteger(String value) { if (!NumberUtils.isDigits(value)) { return Result.newError("notInteger"); } return Result.SUCCESS; } - private static Result validateFloat(@Nullable String value) { + private static Result validateFloat(String value) { try { Double.parseDouble(value); return Result.SUCCESS; |