mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-4871 Documents our manual jdk fix by a TODO
This commit is contained in:
@@ -67,6 +67,7 @@ public class StringConverter extends DefaultTypeConverter {
|
||||
format.setGroupingUsed(false);
|
||||
if (BigDecimal.class.isInstance(value) || Double.class.isInstance(value) || Float.class.isInstance(value)) {
|
||||
format.setMaximumFractionDigits(Integer.MAX_VALUE);
|
||||
// TODO: delete this if statement when jdk fixed java.text.NumberFormat.format's behavior with Float
|
||||
if (Float.class.isInstance(value)) {
|
||||
value = Double.valueOf(value.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user