Quite often I see people explicitly calling super()
in a class that doesn't explicitly extend anything.
public class Foo
{
public Foo()
{
super();
//do other constructor stuff
}
}
Now I know this is perfectly legal and if omitted the call is added by the compiler but I still think its bad practice. Whenever I see this I wonder if the programmer has some misunderstanding of inheritance and the fact that all classes implicitly extend Object
.
Should I add this to our coding standards/best practice and should I pull up the other devs in my team when I see them do it? Its a personal bug-bear of mine but I don't know if I'm just being picky or not.