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

refactor: Replace Plexus AbstractLogEnabled with SLF4J #157

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timtebeek
Copy link
Contributor

As seen on https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=181305684#MavenEcosystemCleanup-DropPlexusContainerforJSR-330+SisuGuiceextension

I have another two lined up for apache/maven and apache/maven-archetype that I'll verify first.

@elharo if you wouldn't mind, could you look this over?

Use this link to re-run the recipe: https://app.moderne.io/builder/P4zH7djn6?organizationId=QXBhY2hlIE1hdmVu


/**
* @author Olivier Lamy
* @since 2.5
*
*/
@Component(role = CheckstyleExecutor.class, hint = "default", instantiationStrategy = "per-lookup")
public class DefaultCheckstyleExecutor extends AbstractLogEnabled implements CheckstyleExecutor {
public class DefaultCheckstyleExecutor implements CheckstyleExecutor {
private static final Logger LOGGER = LoggerFactory.getLogger(DefaultCheckstyleExecutor.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

LOGGER is not a named constant and should be logger instead of LOGGER. See https://stackoverflow.com/questions/1417190/should-a-static-final-logger-be-declared-in-upper-case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I had changed that in 0ee70f2 after Checkstyle complained locally; makes sense not to use uppercase, but then we might need to change checkstyle.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change checkstyle rules then. If it's complaining on this, it's wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants