Skip to content

Commit

Permalink
Update FareAmountFieldMappingFactory.java
Browse files Browse the repository at this point in the history
explicitly cast fare amount from CSV to string, then float
  • Loading branch information
sberkley committed Jan 9, 2025
1 parent d7f98ab commit 39c849a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void translateFromCSVToObject(CsvEntityContext context, Map<String, Objec

Object value = csvValues.get(_csvFieldName);

Float amount = (float) value;
Float amount = Float.parseFloat(value.toString());
object.setPropertyValue(_objFieldName, amount);
}
}
Expand Down

0 comments on commit 39c849a

Please sign in to comment.