Skip to content

Commit

Permalink
Support float and double primitive default values in BeanUtils.instan…
Browse files Browse the repository at this point in the history
…tiateClass()

See spring-projectsgh-27390
  • Loading branch information
takeaction21 authored and sbrannen committed Sep 14, 2021
1 parent 2b55b9c commit e1ba3e7
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -84,6 +84,8 @@ public abstract class BeanUtils {
values.put(short.class, (short) 0);
values.put(int.class, 0);
values.put(long.class, (long) 0);
values.put(float.class, (float) 0);
values.put(double.class, (double) 0);
DEFAULT_TYPE_VALUES = Collections.unmodifiableMap(values);
}

Expand Down

0 comments on commit e1ba3e7

Please sign in to comment.