aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2014-02-24 12:40:19 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2014-02-25 19:01:42 +0100
commitf45020fc935b99134a5f38deb5666503941d780e (patch)
tree6ecbe1a9974dca4a39cba16159cb603f44459a47 /sonar-ws-client
parent745bcc2d7178d1913285b61bec448127774679ee (diff)
downloadsonarqube-f45020fc935b99134a5f38deb5666503941d780e.tar.gz
sonarqube-f45020fc935b99134a5f38deb5666503941d780e.zip
SONAR-4996 Update debt display in technical debt pyramid widget
Diffstat (limited to 'sonar-ws-client')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/services/Measure.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Measure.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Measure.java
index 127df45c856..75f9b910796 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Measure.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Measure.java
@@ -21,7 +21,6 @@ package org.sonar.wsclient.services;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
-
import java.util.LinkedHashMap;
import java.util.Map;
@@ -83,6 +82,14 @@ public class Measure extends Model {
return value.intValue();
}
+ @CheckForNull
+ public Long getLongValue() {
+ if (value == null) {
+ return null;
+ }
+ return value.longValue();
+ }
+
public Measure setValue(@Nullable Double value) {
this.value = value;
return this;