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: fix: Simplify code using Map.computeIfAbsent #4027

Conversation

lyxell
Copy link
Contributor

@lyxell lyxell commented Jul 5, 2021

This pull request fixes 1 violation of Sonar rule S3824 ("Map.get" and value test should be replaced with a single method call).

This patch was generated automatically using Logifix.

Copy link
Collaborator

@slarse slarse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will merge after 24-hour wait period

@algomaster99
Copy link
Contributor

merge after 24-hour wait period

I have seen that you have commented the quoted line in many PRs. Is there some logic behind this? Or do you just wait for others to chime in with their reviews?

@slarse slarse merged commit da65942 into INRIA:master Jul 6, 2021
@slarse
Copy link
Collaborator

slarse commented Jul 6, 2021

@lyxell Thanks for the contribution!

@algomaster99 See the contributing guidelines

@slarse
Copy link
Collaborator

slarse commented Jul 6, 2021

@lyxell Ooops, I made a mistake in merging this: it should be labeled refactor rather than fix, as it doesn't change any functionality. It's the integrator's responsibility to check that the correct label is used, but just as an FYI for future PRs, fix is for bugfixes, refactor for refactorings.

@monperrus monperrus mentioned this pull request Aug 19, 2021
woutersmeenk pushed a commit to woutersmeenk/spoon that referenced this pull request Aug 29, 2021
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.

3 participants
  NODES
COMMUNITY 2
Project 3
USERS 1