Class FindBugsParser
- java.lang.Object
-
- edu.hm.hafner.analysis.IssueParser
-
- edu.hm.hafner.analysis.parser.findbugs.FindBugsParser
-
- All Implemented Interfaces:
Serializable
public class FindBugsParser extends IssueParser
A parser for the native FindBugs XML files.- Author:
- Ullrich Hafner
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFindBugsParser.PriorityPropertyFindBugs 2 and 3 classifies issues using the bug rank and priority (now renamed confidence).static classFindBugsParser.XmlBugInstanceJava Bean to create the mapping of hash codes to messages using the Digester XML parser.
-
Constructor Summary
Constructors Constructor Description FindBugsParser(FindBugsParser.PriorityProperty priorityProperty)Creates a new instance ofFindBugsParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reportparse(ReaderFactory readerFactory)Parses the specified file for issues.-
Methods inherited from class edu.hm.hafner.analysis.IssueParser
accepts, equalsIgnoreCase, isXmlFile, parseFile
-
-
-
-
Constructor Detail
-
FindBugsParser
public FindBugsParser(FindBugsParser.PriorityProperty priorityProperty)
Creates a new instance ofFindBugsParser.- Parameters:
priorityProperty- determines whether to use the rank or confidence when evaluation theSeverity
-
-
Method Detail
-
parse
public Report parse(ReaderFactory readerFactory) throws ParsingException
Description copied from class:IssueParserParses the specified file for issues.- Specified by:
parsein classIssueParser- Parameters:
readerFactory- provides a reader to the reports- Returns:
- the issues
- Throws:
ParsingException- Signals that during parsing a non recoverable error has been occurred
-
-