Skip to content

Conversation

@carterkozak
Copy link
Contributor

Loggers created using getLogger(Class<?>) must reference their enclosing
class.

Before this PR

After this PR

==COMMIT_MSG==
Add error prone LoggerEnclosingClass check. Loggers created using getLogger(Class<?>) must reference their enclosing class.
==COMMIT_MSG==

Possible downsides?

It's possible there are unexpected usage patterns which may need to be suppressed.

Loggers created using getLogger(Class<?>) must reference their enclosing
class.
@carterkozak carterkozak requested a review from ferozco January 10, 2020 21:09
@changelog-app
Copy link

changelog-app bot commented Jan 10, 2020

Generate changelog in changelog/@unreleased

Type

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

Description

Add error prone LoggerEnclosingClass check. Loggers created using getLogger(Class<?>) must reference their enclosing class.

Check the box to generate changelog(s)

  • Generate changelog entry

@ferozco
Copy link
Contributor

ferozco commented Jan 10, 2020

CI failure is unrelated, looks like http://www.vogella.com/tutorials/JUnit/article.html is dead :(

@carterkozak
Copy link
Contributor Author

Removing the dead link here: #1164

Copy link
Contributor

@ferozco ferozco left a comment

Choose a reason for hiding this comment

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

Looks great!

@carterkozak
Copy link
Contributor Author

Thanks for the quick review :-)

@bulldozer-bot bulldozer-bot bot merged commit 874bd03 into develop Jan 10, 2020
@bulldozer-bot bulldozer-bot bot deleted the ckozak/LoggerEnclosingClass branch January 10, 2020 21:40
@svc-autorelease
Copy link
Collaborator

Released 2.49.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