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

Use Pattern Matching for instanceof in PropertyKeySet #2086

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

SirYwell
Copy link
Member

@SirYwell SirYwell commented Feb 6, 2023

Overview

Description

A simple refactoring of PropertyKeySet to make use of pattern matching in instanceof instead of casting.

Submitter Checklist

  • Make sure you are opening from a topic branch (/feature/fix/docs/ branch (right side)) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • New public fields and methods are annotated with @since TODO.
  • I read and followed the contribution guidelines.

@SirYwell SirYwell requested a review from a team as a code owner February 6, 2023 18:43
@github-actions github-actions bot added the chore label Feb 6, 2023
@NotMyFault NotMyFault requested a review from a team February 6, 2023 22:40
@NotMyFault NotMyFault merged commit f9d6b12 into main Feb 7, 2023
@NotMyFault NotMyFault deleted the refactor/instanceof-pattern-match-propertykeyset branch February 7, 2023 22:07
CoolLoong pushed a commit to PowerNukkitX-Bundle/FastAsyncWorldEdit-PNX that referenced this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants