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

Implement ImmutableMapDuplicateKeyStrategy for obvious map construction #2416

Merged
merged 4 commits into from
Sep 30, 2022

Conversation

carterkozak
Copy link
Contributor

==COMMIT_MSG==
Implement ImmutableMapDuplicateKeyStrategy for obvious map construction. By default we suggest replacing build() with the more descriptive buildOrThrow(), however buildKeepingLast() may be the original intent in some cases.
==COMMIT_MSG==

Possible downsides?

Code churn

@changelog-app
Copy link

changelog-app bot commented Sep 30, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Implement ImmutableMapDuplicateKeyStrategy for obvious map construction. By default we suggest replacing build() with the more descriptive buildOrThrow(), however buildKeepingLast() may be the original intent in some cases.

Check the box to generate changelog(s)

  • Generate changelog entry

Copy link
Contributor

@schlosna schlosna left a comment

Choose a reason for hiding this comment

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

Thanks for adding this. I'm curious to see the generated excavators as this rolls out.

@bulldozer-bot bulldozer-bot bot merged commit bd6ec57 into develop Sep 30, 2022
@bulldozer-bot bulldozer-bot bot deleted the ckozak/immutablemap_build branch September 30, 2022 01:29
@svc-autorelease
Copy link
Collaborator

Released 4.179.0

bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Sep 30, 2022
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

# Release Notes
## 4.179.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | Implement ImmutableMapDuplicateKeyStrategy for obvious map construction. By default we suggest replacing `build()` with the more descriptive `buildOrThrow()`, however `buildKeepingLast()` may be the original intent in some cases. | palantir/gradle-baseline#2416 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants