From: Julien Lancelot Date: Mon, 10 Dec 2012 14:31:15 +0000 (+0100) Subject: Fix minor issue from previous commit X-Git-Tag: 3.4~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3f6d5d12a970fdfceb237ac994d42a339c15efa;p=sonarqube.git Fix minor issue from previous commit --- 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 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 parseInteger(Alert alert, Measure measure){ Double value = getValue(alert, measure); return value != null ? value.intValue() : null; }