Skip to content

Exclude constructors and static initializers from method() matcher - #161

Open
mcculls wants to merge 1 commit into
mainfrom
mcculls/method-matcher-exclude-initializers
Open

mcculls wants to merge 1 commit into
mainfrom
mcculls/method-matcher-exclude-initializers

Conversation

@mcculls

@mcculls mcculls commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

What Does This Do

Make the simple method() matcher exclude constructors (<init>) and static initializers (<clinit>). This matches the same behaviour as ByteBuddy's isMethod(). Preserve this restriction when chaining matchers, while allowing explicit constructor or static initializer matches through or(...).

Motivation

Ease future migration paths - note that no-one uses this API yet, so now is the right time to make this change.

@mcculls
mcculls requested a review from a team as a code owner November 1, 2026 16:28
@mcculls
mcculls requested review from bric3 and removed request for a team November 1, 2026 16:28

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant