diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-06-29 17:50:12 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-06-29 17:50:12 +0200 |
commit | d9b79fab67740d8e637838b210ec36e5da05ba07 (patch) | |
tree | f9543b5e960a463b20c7bc3e84056b72f52a5801 | |
parent | 3089eabad40bb08d1b672341e3c986e6251f5694 (diff) | |
download | sonarqube-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.java | 2 |
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; } |