Hello, in a project I'm working on are private methods that are used through reflection by Hibernate and another propietary framework.
The source code has been inspected by Findbugs. Since those private methods are not called from
any other project's class, Findbugs has reported performance issues because those are not used, but they are used...
The error reported by Findbugs is:
Performance - Private method is never called
Plugin: findbugs Key: UPM_UNCALLED_PRIVATE_METHOD
This private method is never called. Although it is possible that the method will be invoked through reflection, it is more likely that the method is never used, and should be removed.
Why could be considered a performance problem?.
However, I'm trying to convince developers to change those methods to protected or package-protected, but they don't
want because those methods don't have to be called by any class within the project but by Hibernate and the propietary framework. Any ideas?