False positive when implementing an interface method without @Override then parameters are marked as unused.

13 views
Skip to first unread message

bobb...@gmail.com

unread,
Oct 7, 2015, 6:36:30 AM10/7/15
to SonarQube
When implementing an interface without @Override some parameters might be marked as unused:


    public Object getAsObject(FacesContext context, UIComponent component, String value) {

Adding the @Override fixes this problem

    @Override
   
public Object getAsObject(FacesContext context, UIComponent component, String value) {


I would suggest making the issue not adding @Override or removing this 'false positive'

Massimo Paladin

unread,
Oct 23, 2015, 4:41:30 AM10/23/15
to bobb...@gmail.com, SonarQube
Hi,

it is already the case, are you providing the byte code during analysis?
The symbol resolution can not be completed without it:

Cheers,

Massimo PALADIN | SonarSource
Software Developer @ Language Team
http://sonarsource.com

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/e532a46a-56a2-4ca3-938a-7468469784c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages