aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-29 17:50:12 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-29 17:50:12 +0200
commitd9b79fab67740d8e637838b210ec36e5da05ba07 (patch)
treef9543b5e960a463b20c7bc3e84056b72f52a5801
parent3089eabad40bb08d1b672341e3c986e6251f5694 (diff)
downloadsonarqube-d9b79fab67740d8e637838b210ec36e5da05ba07.tar.gz
sonarqube-d9b79fab67740d8e637838b210ec36e5da05ba07.zip
fix quality flaw (unnecessary boxing)
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/step/SqaleMeasuresStep.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/SqaleMeasuresStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/SqaleMeasuresStep.java
index be4effc782d..fd714d34b25 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/SqaleMeasuresStep.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/SqaleMeasuresStep.java
@@ -164,7 +164,7 @@ public class SqaleMeasuresStep implements ComputationStep {
case LONG:
return measure.getLongValue();
case DOUBLE:
- return new Double(measure.getDoubleValue()).longValue();
+ return (long) measure.getDoubleValue();
default:
return 0L;
}