[
https://issues.apache.org/jira/browse/JCR-2482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829025#action_12829025
]
Michael Dürig commented on JCR-2482:
------------------------------------
If a super class (probably due to a library upgrade) removes a method which
your code overrides, without @Override your code will compile fine, just your
method won't get called anymore. This may lead to very subtle and probably hard
to find bugs. With @Override your code wont compile anymore immediately
directing you to the problem.
I think the clutter of @Override is very low compared to the value added.
> Reduce number of compiler warning by adding @Override and generics where
> appropriate
> -------------------------------------------------------------------------------------
>
> Key: JCR-2482
> URL: https://issues.apache.org/jira/browse/JCR-2482
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-jcr2spi
> Affects Versions: 2.1.0
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Fix For: 2.1.0
>
>
> Add @Override and generics where possible to reduce the number of warnings
> issued by the compiler.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.