Unused outer classes but used inner classes causes unused warning
Eclipse Plugin to find unused Java code
Brought to you by:
spj
This bug is a copy of General Discussion: "Unused outer classes but used inner classes causes unused warning"
I believe this is a bug and tried to enter the bug in the bugs section, but there appears to be no way to add a bug. Is this by design?
Anyhow, if I have a class like this:
class NotUsedDirectly {
static class Used1 {}
}
class Client {
Client() { new Used1(); }
}
I'll get an incorrect unused code warning on NotUsedDirectly. Not only that, but it will offer as the correction to delete the file.
Anonymous