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

Apply the error-prone CompileTimeConstant annotation to safe messages #104

Merged
merged 3 commits into from
Jan 17, 2019

Conversation

carterkozak
Copy link
Contributor

This change allows the default CompileTimeConstant errorprone check to catch unsafe uses of safe-logging preconditions and exceptions.

@carterkozak carterkozak requested a review from a team as a code owner January 17, 2019 15:44
@carterkozak carterkozak requested a review from iamdanfox January 17, 2019 15:45
@ferozco
Copy link

ferozco commented Jan 17, 2019

👍

@carterkozak
Copy link
Contributor Author

Do we also want to annotate the key argument of SafeArg.of and UnsafeArg.of?

@ferozco
Copy link

ferozco commented Jan 17, 2019

Seems like a good idea

@carterkozak
Copy link
Contributor Author

Ah, the safe-logging module doesn't depend on error-prone. I'll make a separate PR for that.

@bulldozer-bot bulldozer-bot bot merged commit 21e0713 into develop Jan 17, 2019
@bulldozer-bot bulldozer-bot bot deleted the apply_compile_time_constant_annotations branch January 17, 2019 16:02
carterkozak added a commit to palantir/gradle-baseline that referenced this pull request Aug 16, 2019
This check is unnecessary with safe-logging 1.8.0 and beyond, which
use `@CompileTimeConstant` annotations on Preconditions message
arguments.
palantir/safe-logging#104
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.

2 participants