#548 New check: OverridableMethodInConstructor

Future
closed
nobody
None
5
2015-09-24
2010-11-05
No

Do not use protected/public method in C-tor. Use only private and final.
Check all call hierarchy from c-tor to avoid: c-tor -> private -> public/protected.

Link to example: http://www.javapractices.com/topic/TopicAction.do?Id=215

Discussion

  • Roman Ivanov

    Roman Ivanov - 2011-01-18

    Additionally we need to check for methods that does not exists in current java file - it means that this method is public/protected from parent class. And it could be overridden too.

     
  • Roman Ivanov

    Roman Ivanov - 2015-09-24
    • status: open --> closed
    • Group: --> Future
     
  • Roman Ivanov

    Roman Ivanov - 2015-09-24

    issue tracer is moved to github, all sevntu Checks will be moved to main project eventually

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks