diff options
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()); } |