Skip to content

Implement and and or in Matcher directly - #1716

Closed
kashike wants to merge 1 commit into
google:masterfrom
kashike:feature/and-or-matchers
Closed

kashike wants to merge 1 commit into
google:masterfrom
kashike:feature/and-or-matchers

Conversation

@kashike

@kashike kashike commented Apr 29, 2023 •

Copy link
Copy Markdown
Contributor

#1177

This makes AbstractMatcher itself empty now - do you want it to be marked as deprecated?

@sameb

sameb commented Apr 29, 2023

Copy link
Copy Markdown
Member

I'm a little concerned that removing the overrides from AbstractMatcher will break binary compatibility with old jars that delegate to AbstractMatcher.{and,or}. WDYT of keeping those overrides (even though they're redundant on the source-code level)?

Marking as @deprecated SGTM, with the javadoc explaining how implementing Matcher is enough (because of the default and and or methods).

@kashike
kashike force-pushed the feature/and-or-matchers branch from 6965a27 to d1d6322 Compare April 29, 2023 01:59
@kashike

kashike commented Apr 29, 2023

Copy link
Copy Markdown
Contributor Author

@sameb Sounds good - changes made. Let me know if that looks good now.

@copybara-service copybara-service Bot closed this in a99b87a May 1, 2023
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.

2 participants

⌂ 换网址