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

Carsten Ziegeler commented on FELIX-4063:
-----------------------------------------

Yes, this will still generate a warning and yes this would need some more 
logic; I was thinking of adding a marker flag on a property if it is 
auto-generated; but I think it's not really worth the effort now as this would 
require API additions etc.
Thanks for your feedback, I'll set this to resolved
                
> Avoid warnings when using @SlingServlet and @SlingFilter annotations
> --------------------------------------------------------------------
>
>                 Key: FELIX-4063
>                 URL: https://issues.apache.org/jira/browse/FELIX-4063
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: scr annotations 1.9.2
>            Reporter: Julian Sedding
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>         Attachments: FELIX-4063.patch
>
>
> FELIX-4033 introduced build-time warning messages for private properties 
> defined for components with metatype = false.
> The @SlingServlet and @SlingFilter annotations set several properties to be 
> private, thus causing warnings like the following to be reported if metatype 
> = false (the default value).
> [WARNING] /path/TheServlet.java [0:0]: Property sling.servlet.methods in 
> class TheServlet is set as private. This is redundant as no metatype will be 
> generated.

--
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