-
Notifications
You must be signed in to change notification settings - Fork 134
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
Fix PreferSafeLogger edge case that produced non-compiling code #1851
Fix PreferSafeLogger edge case that produced non-compiling code #1851
Conversation
In most cases we wouldn't go this far to ensure green builds, these are easy enough to manually update. However, it's important that automation can roll out the new facade without blocking for devs to make changes, and we can follow-up with a strict check later on to migrate the rest.
Generate changelog in
|
"class Test {", | ||
" private static final Logger log = LoggerFactory.getLogger(Test.class);", | ||
" void action() {", | ||
" log.info(\"foo\", SafeArg.of(\"name\", log.getName()));", |
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.
Previously the log.getName()
method invocation hid in the shadow of the parent log.info node, so the recommended fix wouldn't compile.
Released 4.7.0 |
###### _excavator_ is a bot for automating changes across repositories. Changes produced by the roomba/latest-baseline-oss check. # Release Notes ## 4.7.0 | Type | Description | Link | | ---- | ----------- | ---- | | Fix | Fix PreferSafeLogger edge case that produced suggested fixes that didn't compile without human interaction. | palantir/gradle-baseline#1851 | To enable or disable this check, please contact the maintainers of Excavator.
In most cases we wouldn't go this far to ensure green builds, these
are easy enough to manually update. However, it's important that
automation can roll out the new facade without blocking for devs
to make changes, and we can follow-up with a strict check later
on to migrate the rest.
==COMMIT_MSG==
Fix PreferSafeLogger edge case that produced suggested fixes that didn't compile without human interaction.
==COMMIT_MSG==