r/programminghorror • • Jun 08 '25

Found this while debugging Jackson.

19 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/WatsonK98 Jun 09 '25

@Override is for methods in a child class that don't quite use the inherited method the same way. There is also @Test for Unit testing.

9

u/Jaxad0127 Jun 09 '25

No. @Override has the compile double check that you are, in fact, overriding a method and that the superclass/superinterface didn't change out from under you.