fixes Sonar issue about "Constructor Calls Overridable Method".