-
Notifications
You must be signed in to change notification settings - Fork 135
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
Safety propagation ignores immutables helpers #2237
Safety propagation ignores immutables helpers #2237
Conversation
For example: ``` @Value.Immutable interface Context { AuthService authService(); // not a field, only a utility method default BearerToken token() { return authService().currentToken(); } } ```
Generate changelog in
|
...e-error-prone/src/test/java/com/palantir/baseline/errorprone/SafeLoggingPropagationTest.java
Show resolved
Hide resolved
} | ||
|
||
@Test | ||
void testIgnoresJsonIgnoreHelperMethod() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test would have been an ignore even without the JsonIgnore annotation. Is it worth a version of this test that would actually propagate the method safety annotaiton to the class if the JsonIgnore wasn't there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add another test with a jsonignored field, however we do want to include those in safety because they're included in the toString.
Released 4.121.0 |
###### _excavator_ is a bot for automating changes across repositories. Changes produced by the roomba/latest-baseline-oss check. # Release Notes ## 4.121.0 | Type | Description | Link | | ---- | ----------- | ---- | | Improvement | Safety propagation ignores utility methods on immutables definitions | palantir/gradle-baseline#2237 | To enable or disable this check, please contact the maintainers of Excavator.
For example:
==COMMIT_MSG==
Safety propagation ignores utility methods on immutables definitions
==COMMIT_MSG==