squid:UnusedPrivateMethod false positive for :: (Method Reference) operator

14 views
Skip to first unread message

kuba.bo...@gmail.com

unread,
Mar 1, 2016, 8:35:36 AM3/1/16
to SonarQube
Hi,
 this rule doesn't support Java 8, following code is causing false positives

    {
         item
.getData().getLinks().stream()

                       
.map(ObjectPropertiesExtractor::mapLink);
   
}

   
// squid:UnusedPrivateMethod
   
private static LinkProperties mapLink(AcmeLinkPayload payload) {
 
   
}

Michael Gumowski

unread,
Mar 1, 2016, 8:38:52 AM3/1/16
to Jakub Bocheński, SonarQube
Hello Jakub,

Thank you for your feedback, this is a well known limitation of the current implementation. The following JIRA ticket already covers it: https://jira.sonarsource.com/browse/SONARJAVA-583

Regards,

Michael GUMOWSKI | 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/e77cd50c-edd0-4d83-b394-69b31fc25b9f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages