Possible missing annotation in Java Builder example

Jakub Wodecki 2 months ago 0

I was just looking into an example of Java Builder pattern and I think that there is a missing annotation - Builder in Java / Design Patterns (refactoring.guru).
In CarBuilder there is an implemented method setCarType from an interface, but it doesn't have @Override annotation whereas in other implementations it has this annotation. I know this annotation is not mandatory, but it's a good practice and since it is used with every other method and other implementations, I thought it could be added. Or is there a reason that this annotation wasn't used that I have missed?

Image 1651

Image 1650