uber / NullAway

A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead
MIT License
3.64k stars 294 forks source link

Extend Restricted Regexp Package Patterns syntax for nested classes #238

Open mariha opened 6 years ago

mariha commented 6 years ago

It would be nice to be able to do something like -XepOpt:NullAway:ExcludedClasses=com.myorg.[a-zA-Z0-9.]*.Builder where the pattern matches a package and outer class name and Builder is a nested class name.

Nothing very urgent though.

msridhar commented 6 years ago

Thanks for the suggestion! We'll keep this in mind. We're going to re-think our suppressions story around inner classes in the near future