Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Renaming a class with the @Log4j2 annotation adds extra qualification to calls. #29

Closed
ChrisKitching opened this issue Feb 17, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@ChrisKitching
Copy link

I imagine this also applies to the other @logger annotations,

Consider:

public @log4j2 class Cake {
public void doStuff() {
log.debug("Toasters.");
}
}

If you now use IDEA's rename refactoring to rename this class to, say, Biscuits, it alters also the log line to:
Biscuits.log.debug("Toasters");

This isn't invalid, but it adds a bunch of unwanted changes to the code. It'd be nice if it were smart enough to not add this....

@mplushnikov mplushnikov added this to the 8.0.2 milestone Feb 23, 2014
@mplushnikov mplushnikov self-assigned this Feb 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants