aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin/src/main
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2012-12-10 15:31:15 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2012-12-10 15:31:15 +0100
commitb3f6d5d12a970fdfceb237ac994d42a339c15efa (patch)
treecce15f965ae0eb0482903bb0776420ac1c742ee2 /plugins/sonar-core-plugin/src/main
parent8fa017822aedda6928f7886a20832c9dc225d11e (diff)
downloadsonarqube-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.java6
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;
}