Skip to content

Commit

Permalink
Set containingClass at MethodParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 4, 2022
1 parent d46b735 commit bb89c0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private static Stream<MethodParameter> fromSimpleClass(Class<?> paramClass, Fiel
.filter(d -> d.getName().equals(field.getName()))
.map(PropertyDescriptor::getReadMethod)
.filter(Objects::nonNull)
.map(method -> new MethodParameter(method, -1))
.map(method -> new MethodParameter(method, -1).withContainingClass(paramClass))
.map(param -> new DelegatingMethodParameter(param, fieldNamePrefix + field.getName(), finalFieldAnnotations, true, isNotRequired));
}
catch (IntrospectionException e) {
Expand Down Expand Up @@ -246,4 +246,4 @@ static void removeSimpleTypes(Class<?>... classes) {
SIMPLE_TYPES.removeAll(Arrays.asList(classes));
}

}
}

0 comments on commit bb89c0e

Please sign in to comment.