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

Additional safe-logging annotations on type variables #1437

Merged
merged 2 commits into from
Apr 11, 2022

Conversation

carterkozak
Copy link
Contributor

From palantir/safe-logging#699

==COMMIT_MSG==
Additional safe-logging annotations on type variables
==COMMIT_MSG==

@changelog-app
Copy link

changelog-app bot commented Apr 11, 2022

Generate changelog in changelog/@unreleased

Type

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

Description

Additional safe-logging annotations on type variables

Check the box to generate changelog(s)

  • Generate changelog entry

Preconditions.checkNotNull(entries, "entries");
tagMap = TagMap.of((Map<String, String>) entries);
return (MetricName.Builder) this;
}

@SuppressWarnings("unchecked")
@CanIgnoreReturnValue
public MetricName.Builder putAllSafeTags(@Safe Map<String, ? extends String> entries) {
public MetricName.Builder putAllSafeTags(@Safe Map<@Safe String, @Safe ? extends String> entries) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

likely safe to remove the parameter annotation in these cases, but I could go either way

@bulldozer-bot bulldozer-bot bot merged commit 8576e41 into develop Apr 11, 2022
@bulldozer-bot bulldozer-bot bot deleted the ckozak/more_annotations branch April 11, 2022 14:51
@svc-autorelease
Copy link
Collaborator

Released 0.47.0

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.

4 participants