Skip to content

Commit

Permalink
treat boxed Boolean fields like primitive ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Lemmen committed Apr 18, 2018
1 parent e61cc1b commit f2e5782
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public static PropertyMetadata getPropertyMetadata(Field field) {
public static MethodHandle findReadMethodHandle(Field field) {
String readMethodName;
MethodHandle mh = null;
if (boolean.class.equals(field.getType())) {
if (boolean.class.equals(field.getType())
|| Boolean.class.equals(field.getType())) {
readMethodName = IntrospectionUtils.getReadMethodNameForBoolean(field);
mh = findInstanceMethod(field.getDeclaringClass(), readMethodName, field.getType());
}
Expand Down

0 comments on commit f2e5782

Please sign in to comment.