I am finished with my code and I checked it with codestyle. But he gives by every not private method the suggestion that it must be final or abstract. And also the parameters of these methods. Can I trust codestyle with all of its check-info's ? If I change my code so by checking with codestyle no errors are given, is it then OK? Thanks Baris
posted 12 years ago
hi Baris: I haven't used Code Style before, but I read a bit about it. If I were in your position, I would cosider the recommendation, however I must understand why such thing is recomened before I attempt to change my code. In your example, Code Style probably suggests that non private method be marked with either final or abstract for a reason. Good programming practice suggest that you narrow the scope of your methods. If your method is designed, and documentd for inheretance, it should be marked as abstract. If your method is not designed for inheritance, it should be marked as final, so that no other programmer can override it. Again, it is my own opinion.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads