[ 
https://issues.apache.org/jira/browse/SLING-2997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13730881#comment-13730881
 ] 

Justin Edelson commented on SLING-2997:
---------------------------------------

I personally like having the @Override annotation for interfaces, so I'd 
consider this a good reason :)

But I didn't write this code, so I can't speak to why it was used there.

Another option would be to separate out the source vs. target version in the 
parent POM. Right now, there is one property which controls both.
                
> ResourceAccessSecurityImpl uses @Override for interface methods, but does not 
> declare compiler version as Java 6
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-2997
>                 URL: https://issues.apache.org/jira/browse/SLING-2997
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>            Reporter: Justin Edelson
>            Assignee: Justin Edelson
>            Priority: Minor
>             Fix For: Resource Access Gate 1.0.0
>
>
> The class 
> org.apache.sling.resourceaccesssecurity.impl.ResourceAccessSecurityImpl uses 
> @Override to indicate interface implementation. This, however, is only valid 
> on Java 6 and above.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to