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

allow trailing comma in annotation arrays #1904

Merged
merged 2 commits into from
Sep 3, 2021

Conversation

rzpt
Copy link
Contributor

@rzpt rzpt commented Sep 2, 2021

Before this PR

@JsonIgnoreProperties({
         "foo",
         "bar", // This comma is not allowed
})

It's better to allow it to minimize diffs.

After this PR

==COMMIT_MSG==
allow trailing comma in annotation arrays
==COMMIT_MSG==

Possible downsides?

None.

@changelog-app
Copy link

changelog-app bot commented Sep 2, 2021

Generate changelog in changelog/@unreleased

Type

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

Description

allow trailing comma in annotation arrays

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from xRuiAlves September 2, 2021 02:37
@carterkozak
Copy link
Contributor

I think this is reasonable, it would certainly make diffs in excavator-gradle cleaner (roomba-lint additions come to mind). I'm going to give folks on the team an hour or two to opine before I merge.

Copy link
Contributor

@carterkozak carterkozak left a comment

Choose a reason for hiding this comment

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

discussed, all in favor.

@bulldozer-bot bulldozer-bot bot merged commit 139e0dd into develop Sep 3, 2021
@bulldozer-bot bulldozer-bot bot deleted the allow-trailing-comma branch September 3, 2021 14:40
@svc-autorelease
Copy link
Collaborator

Released 4.23.0

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

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

# Release Notes
## 4.23.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | allow trailing comma in annotation arrays | palantir/gradle-baseline#1904 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Sep 3, 2021
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