There is no need to ever manually call the empty super() constructor.  The empty constructor of the parent class will be called automatically unless a different constructor is given.

    :
    public FtpServerConfig()
    {
        super();
        ftpServerUsers = new ArrayList<FtpServerUser>();
    }
    :

Instead, the call to super() is implied.

    :
    public FtpServerConfig()
    {
        // super() has already been called by now
        ftpServerUsers = new ArrayList<FtpServerUser>();
    }
    :

So there is no need to call super() in every constructor. All developers should know super() is always called first by default, just as they should know member variables are automatically initialized to null if you do not assign them a value.

blog comments powered by Disqus