Menu

#1337 onlyAnalize flag with inner class

3.x
closed-rejected
None
5
2017-10-22
2014-11-27
Juan Sotuyo
No

I've so far been unable to use onlyAnalyze with inner classes.

According to the doc, using the same syntax as used to import should work (with a public static class for instance it could be my.package.MyClass.Inner).

However, everything I've tried fails:

  • my.package.MyClass.Inner
  • my.package.MyClass$Inner
  • my.package.MyClass
  • my.package.MyClass.*
  • my.package.MyClass.-

My use case is the following. I'm trying to get analyses run as fast as possible. For a given changeset, I know exactly which files have been modified, so I want Findbugs just to analyze those classes, and any inner classes the may have. I can get it to analyze the top level classes, but fail misserably when trying to analyze inner clases (regardless of visibility, or being public or not).

Thanks in advanced
Am I missing something? Or is this usecase outside the scope of Findbugs?

Discussion

  • Juan Sotuyo

    Juan Sotuyo - 2014-11-28

    I was able to do it, but in a really dirty way... I had to use my.package.MyClass$\S+ and abuse on the fact that the given path is not quoted for the RegExp. However, this not being documented in the option, it feels extremely dirty and I feel a cleaner way should be available...

     
  • William Pugh

    William Pugh - 2015-02-02
    • assigned_to: William Pugh
     
  • Andrey Loskutov

    Andrey Loskutov - 2017-10-22
    • Status: open --> closed-rejected
     

Log in to post a comment.

MongoDB Logo MongoDB