Permalink
Browse files

Resolve #696 Fix method parameter check for getter returning an embed…

…ded type
  • Loading branch information...
npurushe committed Oct 5, 2017
1 parent eb441df commit 00e72c64a00c1163483e37a988eb697d2a28f965
Showing with 1 addition and 1 deletion.
  1. +1 −1 requery-jackson/src/main/java/io/requery/jackson/EntityBeanDeserializer.java
@@ -103,7 +103,7 @@ protected Object deserializeFromObjectUsingNonDefault(JsonParser p, Deserializat
if (method == null) {
Class<?> target = getValueType().getRawClass();
for (Method m : parentClass.getDeclaredMethods()) {
if (target.isAssignableFrom(m.getReturnType()) && m.getParameters().length == 0) {
if (target.isAssignableFrom(m.getReturnType()) && m.getParameterTypes().length == 0) {
embeddedGetters.put(parentClass, m);
method = m;
break;

0 comments on commit 00e72c6

Please sign in to comment.