diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2012-12-10 15:31:15 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2012-12-10 15:31:15 +0100 |
commit | b3f6d5d12a970fdfceb237ac994d42a339c15efa (patch) | |
tree | cce15f965ae0eb0482903bb0776420ac1c742ee2 /plugins/sonar-core-plugin/src/main | |
parent | 8fa017822aedda6928f7886a20832c9dc225d11e (diff) | |
download | sonarqube-b3f6d5d12a970fdfceb237ac994d42a339c15efa.tar.gz sonarqube-b3f6d5d12a970fdfceb237ac994d42a339c15efa.zip |
Fix minor issue from previous commit
Diffstat (limited to 'plugins/sonar-core-plugin/src/main')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/AlertUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/AlertUtils.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/AlertUtils.java index d56f275ffc4..450d31ac4c5 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/AlertUtils.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/AlertUtils.java @@ -107,7 +107,7 @@ public final class AlertUtils { throw new NotImplementedException(metric.getType().toString()); } - private static Comparable<?> parseInteger(String value){ + private static Comparable<Integer> parseInteger(String value){ return value.contains(".") ? Integer.parseInt(value.substring(0, value.indexOf('.'))) : Integer.parseInt(value); } @@ -117,7 +117,7 @@ public final class AlertUtils { return getValue(alert, measure); } if (isAInteger(metric)) { - parseInteger(alert, measure); + return parseInteger(alert, measure); } if (alert.getPeriod() == null) { if (isAString(metric)) { @@ -130,7 +130,7 @@ public final class AlertUtils { throw new NotImplementedException(metric.getType().toString()); } - private static Comparable<?> parseInteger(Alert alert, Measure measure){ + private static Comparable<Integer> parseInteger(Alert alert, Measure measure){ Double value = getValue(alert, measure); return value != null ? value.intValue() : null; } |