Determining which public methods can be made private
posted 8 years ago
Our lecturer and tutor encourage us to make all our methods public initially, just so we can test them interactively (very easy to do in the BlueJ educational IDE). But, when everything is working well, we are expected to make public methods private if they are not called from other classes.
It can be quite a chore if you have a lot of classes with many fields, and setters and getters largely there to help set up tests. Does anybody know of a workaround, utility or plug-in that will list all methods not called from any class other than their home class?