Skip to content

SearchStrategy argument of MethodValidationExcludeFilter byAnnotation(Class, SearchStrategy) is not used #30631

@wilkinsona

Description

@wilkinsona

From @chanhyeong on Gitter:

I have a question about the static method byAnnotation(Class<? extends Annotation> annotationType, SearchStrategy searchStrategy) in MethodValidationExcludeFilter.
It has a searchStrategy argument that doesn't be used (has a fixed value SearchStrategy.SUPERCLASS)

This looks like a bug to me. The search strategy argument should be passed into the call to MergedAnnotations.from.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions