From b3f6d5d12a970fdfceb237ac994d42a339c15efa Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 10 Dec 2012 15:31:15 +0100 Subject: [PATCH] Fix minor issue from previous commit --- .../java/org/sonar/plugins/core/sensors/AlertUtils.java | 6 +++--- 1 file 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 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; } -- 2.39.5