• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Determining which public methods can be made private

 
Hedley Finger
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic