#1272 In JDK 1.8 mode, lambda expressions are reported as unused private methods

3.0.0
closed-fixed
None
5
2014-06-17
2014-04-27
No

Here's a sample FindBugs (v3.0.0.20140427-0c3407e) output:

Bug: Private method com.intersystems.iknow.languagemodel.slavic.impl.HunspellAnalyzer.lambda$0(StringBuilder, int) is never called
This private method is never called. Although it is possible that the method will be invoked through reflection, it is more likely that the method is never used, and should be removed.

Rank: Of Concern (20), confidence: Low
Pattern: UPM_UNCALLED_PRIVATE_METHOD 
Type: UPM, Category: PERFORMANCE (Performance)

Discussion

  • Andrey Loskutov

    Andrey Loskutov - 2014-04-27
    • status: open --> closed-fixed
    • assigned_to: Andrey Loskutov
     
  • Andrey ``Bass'' Shcheglov

    Thanks Andrey.

    Sure, I will in the future =)
    In this very case, however, any lambda expression triggered this warning.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks