A software developer. I'm interested in learning new technologies and core language features. I love to dive into legacy code writing tests and refactoring as I go.
It makes sense that lombok would put the check after the call to super(name). Any call to a super constructor must be the first statement in the child constructor. It is a compile error otherwise. This is because the parent needs to be initialized before any parent methods may be called in the child constructor. I think that since name is already checked in the parent it shouldn't be checked in the child.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It makes sense that lombok would put the check after the call to
super(name)
. Any call to a super constructor must be the first statement in the child constructor. It is a compile error otherwise. This is because the parent needs to be initialized before any parent methods may be called in the child constructor. I think that sincename
is already checked in the parent it shouldn't be checked in the child.