public class DupFinderParser extends AbstractDryParser<Duplicate>
| Constructor and Description |
|---|
DupFinderParser()
Creates a new instance of
DupFinderParser. |
DupFinderParser(int highThreshold,
int normalThreshold)
Creates a new instance of
DupFinderParser. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureParser(org.apache.commons.digester3.Digester digester)
Configures the Digester parser.
|
protected Report |
convertDuplicationsToIssues(List<Duplicate> duplications)
Converts the parsed duplications from the original format to an
Report instance. |
getPriority, parseaccepts, isXmlFilepublic DupFinderParser(int highThreshold,
int normalThreshold)
DupFinderParser.highThreshold - minimum number of duplicate lines for high priority warningsnormalThreshold - minimum number of duplicate lines for normal priority warningspublic DupFinderParser()
DupFinderParser. The highThreshold is set to 50, the normalThreshold
is set to 25.protected void configureParser(org.apache.commons.digester3.Digester digester)
AbstractDryParserconfigureParser in class AbstractDryParser<Duplicate>digester - the parser to configureprotected Report convertDuplicationsToIssues(List<Duplicate> duplications)
AbstractDryParserReport instance.convertDuplicationsToIssues in class AbstractDryParser<Duplicate>duplications - the parsed warningsCopyright © 2018. All rights reserved.