I use static analyzer in Eclipse to examine my code. One class, foo, has an inner class, bar. I get the following error:
JAVA0043 Inner class 'bar' does not use outer class 'foo'
Why is this a mistake? As long as the outer class uses the inner class, is it not enough that this information is hidden useful and correct?
The inner class is not static.
source
share