• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can I trust CodeStyle ??

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic