FindBugs sourceInfo fileThe FindBugs analysis engine can be invoked with an optional sourceInfo file. This file gives line number ranges for classes, files and methods. This information is an alternative to getting line number information from the classfiles for methods. Since classfiles only contain line number information for methods, without a sourceInfo file we can't provide line numbers for fields, and for classes we just use the line numbers of the methods in the class. The first line of the file should be sourceInfo version 1.0 Following that are a series of lines, each describing a class, field, or method. For each, a starting and ending line number is provided. For example, the following sourceInfo file: sourceInfo version 1.0 a.C,3,8 a.C,x,4,4 a.C,y,4,4 a.C,provides the following information about the class a.C:
a.C$X,10,15 |
Send comments to findbugs@cs.umd.edu