mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 01:51:49 +01:00
checkstyle corrections
Former-commit-id: c64cd0ab69715dce4d0cb4671ff58844367e11a2
This commit is contained in:
@@ -45,6 +45,7 @@ import org.owasp.dependencycheck.utils.LogUtils;
|
|||||||
* @author Jeremy Long <jeremy.long@owasp.org>
|
* @author Jeremy Long <jeremy.long@owasp.org>
|
||||||
*/
|
*/
|
||||||
public class DependencyBundlingAnalyzer extends AbstractAnalyzer implements Analyzer {
|
public class DependencyBundlingAnalyzer extends AbstractAnalyzer implements Analyzer {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Logger.
|
* The Logger.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import java.util.Properties;
|
|||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import org.owasp.dependencycheck.data.update.NvdCveInfo;
|
import org.owasp.dependencycheck.data.update.NvdCveInfo;
|
||||||
import org.owasp.dependencycheck.data.update.exception.UpdateException;
|
import org.owasp.dependencycheck.data.update.exception.UpdateException;
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public final class DriverLoader {
|
|||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(DriverLoader.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(DriverLoader.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private constructor for a utility class.
|
* Private constructor for a utility class.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ public class NvdCveUpdater implements CachedWebDataSource {
|
|||||||
* The logger
|
* The logger
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(NvdCveUpdater.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(NvdCveUpdater.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Downloads the latest NVD CVE XML file from the web and imports it into the current CVE Database.</p>
|
* Downloads the latest NVD CVE XML file from the web and imports it into the current CVE Database.</p>
|
||||||
|
|||||||
@@ -46,6 +46,10 @@ import org.owasp.dependencycheck.utils.Settings;
|
|||||||
* @author Jeremy Long <jeremy.long@owasp.org>
|
* @author Jeremy Long <jeremy.long@owasp.org>
|
||||||
*/
|
*/
|
||||||
public class StandardUpdate {
|
public class StandardUpdate {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static logger.
|
||||||
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(StandardUpdate.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(StandardUpdate.class.getName());
|
||||||
/**
|
/**
|
||||||
* The max thread pool size to use when downloading files.
|
* The max thread pool size to use when downloading files.
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public class CallableDownloadTask implements Callable<Future<ProcessTask>> {
|
|||||||
* The Logger.
|
* The Logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(CallableDownloadTask.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(CallableDownloadTask.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple constructor for the callable download task.
|
* Simple constructor for the callable download task.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ import javax.xml.parsers.SAXParserFactory;
|
|||||||
import org.owasp.dependencycheck.data.nvdcve.CveDB;
|
import org.owasp.dependencycheck.data.nvdcve.CveDB;
|
||||||
import org.owasp.dependencycheck.data.nvdcve.DatabaseException;
|
import org.owasp.dependencycheck.data.nvdcve.DatabaseException;
|
||||||
import org.owasp.dependencycheck.data.nvdcve.DatabaseProperties;
|
import org.owasp.dependencycheck.data.nvdcve.DatabaseProperties;
|
||||||
import org.owasp.dependencycheck.data.update.StandardUpdate;
|
|
||||||
import org.owasp.dependencycheck.data.update.exception.UpdateException;
|
import org.owasp.dependencycheck.data.update.exception.UpdateException;
|
||||||
import org.owasp.dependencycheck.data.update.xml.NvdCve12Handler;
|
import org.owasp.dependencycheck.data.update.xml.NvdCve12Handler;
|
||||||
import org.owasp.dependencycheck.data.update.xml.NvdCve20Handler;
|
import org.owasp.dependencycheck.data.update.xml.NvdCve20Handler;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public class EscapeTool {
|
|||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(EscapeTool.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(EscapeTool.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL Encodes the provided text.
|
* URL Encodes the provided text.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ public class ReportGenerator {
|
|||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(ReportGenerator.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(ReportGenerator.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An enumeration of the report formats.
|
* An enumeration of the report formats.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package org.owasp.dependencycheck.reporting;
|
|||||||
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.apache.velocity.app.Velocity;
|
|
||||||
import org.apache.velocity.runtime.RuntimeServices;
|
import org.apache.velocity.runtime.RuntimeServices;
|
||||||
import org.apache.velocity.runtime.log.LogChute;
|
import org.apache.velocity.runtime.log.LogChute;
|
||||||
|
|
||||||
@@ -41,6 +40,7 @@ public class VelocityLoggerRedirect implements LogChute {
|
|||||||
* The Logger.
|
* The Logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(VelocityLoggerRedirect.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(VelocityLoggerRedirect.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This will be invoked once by the LogManager.
|
* This will be invoked once by the LogManager.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ public class SuppressionErrorHandler implements ErrorHandler {
|
|||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(SuppressionErrorHandler.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(SuppressionErrorHandler.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds a prettier exception message.
|
* Builds a prettier exception message.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import java.sql.SQLException;
|
|||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.owasp.dependencycheck.data.nvdcve.CveDB;
|
|
||||||
import org.owasp.dependencycheck.data.nvdcve.DatabaseException;
|
import org.owasp.dependencycheck.data.nvdcve.DatabaseException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -36,6 +35,7 @@ public final class DBUtils {
|
|||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(DBUtils.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(DBUtils.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private constructor for a utility class.
|
* Private constructor for a utility class.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public final class Downloader {
|
|||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(Downloader.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(Downloader.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private constructor for utility class.
|
* Private constructor for utility class.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ public final class LogUtils {
|
|||||||
* The logger.
|
* The logger.
|
||||||
*/
|
*/
|
||||||
private static final Logger LOGGER = Logger.getLogger(LogUtils.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(LogUtils.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private constructor for a utility class.
|
* Private constructor for a utility class.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user