Skip to content

Replace hardcoded return type check with BiPredicate in AbstractGatewayDiscoverer#4043

Open
abrxu wants to merge 1 commit intospring-cloud:mainfrom
abrxu:fix/replace-return-type-check-with-bipredicate
Open

Replace hardcoded return type check with BiPredicate in AbstractGatewayDiscoverer#4043
abrxu wants to merge 1 commit intospring-cloud:mainfrom
abrxu:fix/replace-return-type-check-with-bipredicate

Conversation

@abrxu
Copy link

@abrxu abrxu commented Jan 22, 2026

  • Add overloaded doDiscover method that accepts a BiPredicate<Class<R>, Method> for flexible method filtering - Original method delegates to the new one with default behavior (isAssignableFrom check) - Resolves TODO comment in AbstractGatewayDiscoverer

    Tests

    • PredicateDiscovererTests pass
    • Module compiles successfully

…ayDiscoverer

Add overloaded doDiscover method that accepts a BiPredicate<Class<R>, Method>
to allow flexible method filtering. The original method delegates to the new
one with the default predicate behavior (isAssignableFrom check).

Signed-off-by: abrxu <abrxu@yahoo.com>
@spencergibb
Copy link
Member

Are you running into a problem because of it, or just addressing the TODO?

@abrxu
Copy link
Author

abrxu commented Jan 22, 2026

Are you running into a problem because of it, or just addressing the TODO?

Just addressing the TODO. I noticed it while exploring the codebase and thought it would be a good first contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants