Skip to content

Commit

Permalink
Resolve #696 Fix method parameter check for getter returning an embed…
Browse files Browse the repository at this point in the history
…ded type
  • Loading branch information
npurushe committed Oct 5, 2017
1 parent eb441df commit 00e72c6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -103,7 +103,7 @@ protected Object deserializeFromObjectUsingNonDefault(JsonParser p, Deserializat
if (method == null) { if (method == null) {
Class<?> target = getValueType().getRawClass(); Class<?> target = getValueType().getRawClass();
for (Method m : parentClass.getDeclaredMethods()) { 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); embeddedGetters.put(parentClass, m);
method = m; method = m;
break; break;
Expand Down

0 comments on commit 00e72c6

Please sign in to comment.