• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I trust CodeStyle ??

 
Baris Dere
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic