mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
fixed loading of Bravo fixes caused by Integer number triggering a ClassCastException as they are not Double but Integer
Change-Id: Ifa37ef4a509d9aa7edeeac328a2e538e4a5a079f
This commit is contained in:
1 parent
6d95ad2353
commit
47314fcf38
1 file changed
+2
-2
+2
-2
@@ -48,10 +48,10 @@ public class DoubleVectorFixMongoHandlerImpl implements FixMongoHandler<DoubleVe
|
||||
|
||||
private double[] fromDBObject(DBObject dbObject) {
|
||||
@SuppressWarnings("unchecked")
|
||||
List<Double> dbValues = (List<Double>) dbObject;
|
||||
List<Number> dbValues = (List<Number>) dbObject;
|
||||
double[] result = new double[dbValues.size()];
|
||||
for(int i = 0 ; i < dbValues.size() ; i++) {
|
||||
result[i] = dbValues.get(i);
|
||||
result[i] = dbValues.get(i).doubleValue();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user