checkstyle update

This commit is contained in:
Jeremy Long
2017-12-03 10:15:57 -05:00
parent dc1acc99da
commit 2d984dda94

View File

@@ -52,11 +52,11 @@ import org.xml.sax.SAXException;
public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer { public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
/** /**
* The Logger for use throughout the class * The Logger for use throughout the class.
*/ */
private static final Logger LOGGER = LoggerFactory.getLogger(AbstractSuppressionAnalyzer.class); private static final Logger LOGGER = LoggerFactory.getLogger(AbstractSuppressionAnalyzer.class);
/** /**
* The list of suppression rules * The list of suppression rules.
*/ */
private List<SuppressionRule> rules = new ArrayList<>(); private List<SuppressionRule> rules = new ArrayList<>();
@@ -117,12 +117,11 @@ public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
* @throws SuppressionParseException thrown if the XML cannot be parsed. * @throws SuppressionParseException thrown if the XML cannot be parsed.
*/ */
private void loadSuppressionData() throws SuppressionParseException { private void loadSuppressionData() throws SuppressionParseException {
List<SuppressionRule> ruleList = new ArrayList<>(); final List<SuppressionRule> ruleList = new ArrayList<>();
final SuppressionParser parser = new SuppressionParser(); final SuppressionParser parser = new SuppressionParser();
final String[] suppressionFilePaths = getSettings().getArray(Settings.KEYS.SUPPRESSION_FILE); final String[] suppressionFilePaths = getSettings().getArray(Settings.KEYS.SUPPRESSION_FILE);
final List<String> failedLoadingFiles = new ArrayList<>(); final List<String> failedLoadingFiles = new ArrayList<>();
if (suppressionFilePaths != null && suppressionFilePaths.length > 0) { if (suppressionFilePaths != null && suppressionFilePaths.length > 0) {
// Load all the suppression file paths // Load all the suppression file paths
for (final String suppressionFilePath : suppressionFilePaths) { for (final String suppressionFilePath : suppressionFilePaths) {
try { try {
@@ -145,7 +144,6 @@ public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
} }
} }
/** /**
* Loads all the base suppression rules files. * Loads all the base suppression rules files.
* *