Skip to content

Commit

Permalink
PR feedback: remove usage of erased type (let's use the direct type w…
Browse files Browse the repository at this point in the history
…hile we're at it)
  • Loading branch information
smaarn committed Oct 31, 2024
1 parent a6cc19e commit fadf84a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected ResolvedMethod getJsonValueAnnotatedMethod(ResolvedType javaType, Sche
ResolvedMethod[] memberMethods = context.getTypeContext().resolveWithMembers(javaType).getMemberMethods();
Set<ResolvedMethod> jsonValueAnnotatedMethods = Stream.of(memberMethods)
.filter(method -> method.getArgumentCount() == 0)
.filter(method -> AnnotationHelper.resolveAnnotation(method.getRawMember(), JsonValue.class).map(JsonValue::value).orElse(false))
.filter(method -> AnnotationHelper.resolveAnnotation(method, JsonValue.class).map(JsonValue::value).orElse(false))
.collect(Collectors.toSet());
if (jsonValueAnnotatedMethods.size() == 1) {
return jsonValueAnnotatedMethods.iterator().next();
Expand Down

0 comments on commit fadf84a

Please sign in to comment.