On Fri, 5 Nov 2021 13:02:52 GMT, Leo Korinth <lkori...@openjdk.org> wrote:

> > In what way is it "safer" ?? What are you trying to guard against?
> 
> If you use `override`, you can not forget to update a method signature if you 
> change the method signature in the base class. You can also not by mistake 
> change the method signature in this class without realizing you should change 
> the base class. There is no downside of using `override` that I know of.

In addition to that, its a helpful documentation for the code reader.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6274

Reply via email to