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

review: refactor: Replace getOrCreate in Metamodel with computeIfAbsent #4185

Merged
merged 2 commits into from
Sep 28, 2021

Conversation

SirYwell
Copy link
Collaborator

@SirYwell SirYwell commented Sep 26, 2021

In #4158 I removed the utility class and its usages, but it seems like the code was duplicated and used in the Metamodel too, I refactored the code to use computeIfAbsent there now too.

@SirYwell SirYwell changed the title wip: refactor: Replace getOrCreate in Metamodel with computeIfAbsent review: refactor: Replace getOrCreate in Metamodel with computeIfAbsent Sep 26, 2021
@monperrus
Copy link
Collaborator

Thanks @SirYwell. LGTM, will merge.

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