Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New InstanceOfPatternMatch recipe #2689

Conversation

knutwannheden
Copy link
Contributor

Implement a recipe which for Java 17+ transforms instanceof expressions which have a corresponding type cast within their flow scope (see https://openjdk.org/jeps/394 for details) to an instanceof with a pattern variable and then also substitutes the type cast expressions accordingly.

Implement a recipe which for Java 17+ transforms `instanceof` expressions which have a corresponding type cast within their flow scope (see https://openjdk.org/jeps/394 for details) to an `instanceof` with a pattern variable and then also substitutes the type cast expressions accordingly.
@knutwannheden knutwannheden deleted the instanceof-pattern-recipe branch January 23, 2023 10:54
@knutwannheden knutwannheden restored the instanceof-pattern-recipe branch January 23, 2023 10:55
@knutwannheden
Copy link
Contributor Author

Accidentally pushed as non-draft. See #2690 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant