diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 16:25:01 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 16:25:08 +0200 |
commit | bdc239fc9ac9c6aa94bc80eab122de7a0fb698ef (patch) | |
tree | 5319c5a9da777c247f252566245a4dc9b7a8d5ab /sonar-batch | |
parent | 31c56c4337d47b6e0486c8ceb2815c7fa1173dcc (diff) | |
download | sonarqube-bdc239fc9ac9c6aa94bc80eab122de7a0fb698ef.tar.gz sonarqube-bdc239fc9ac9c6aa94bc80eab122de7a0fb698ef.zip |
Fix quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/scan/AnalyzerContextAdaptor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/AnalyzerContextAdaptor.java b/sonar-batch/src/main/java/org/sonar/batch/scan/AnalyzerContextAdaptor.java index e1bf875059f..d92769f308c 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/AnalyzerContextAdaptor.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/AnalyzerContextAdaptor.java @@ -171,13 +171,13 @@ public class AnalyzerContextAdaptor implements AnalyzerContext { measureToSave.setData(((String) measure.value())); break; case WORK_DUR: - measureToSave.setValue(Double.valueOf(((Long) measure.value()))); + measureToSave.setValue(Double.valueOf((Long) measure.value())); break; default: if (m.isNumericType()) { - measureToSave.setValue(((Double) measure.value())); + measureToSave.setValue((Double) measure.value()); } else if (m.isDataType()) { - measureToSave.setData(((String) measure.value())); + measureToSave.setData((String) measure.value()); } else { throw new UnsupportedOperationException("Unsupported type :" + m.getType()); } |