Add ClassInfo#getSourceFile#740
Conversation
|
Btw this would be nice if we could use some nullability annotations, as some fields (such as this one) are optional, letting IDEs or even languages (like Kotlin) to know what is nullable or not, would be useful I'd suggest using this one: |
|
Thank you for the contribution, @freya022! I'll roll out a release tonight. Good suggestion re findbugs. I did some nullability dataflow analysis in the past, and I gave up, partly because the compile-time dependency I added wasn't compatible with JDK 7, which was (and is still) supported by ClassGraph. I'll try out findbugs. I suspect it will be an enormous amount of work to get the nullability annotations correct throughout the entire project, however. I am not up to date in my knowledge about how much of the work tools can do correctly for the programmer. |
This PR adds the
SourceFileattribute, as specified in the 4.7.10 section