From f3c026f278fca02e593349f173ae116d39b176b8 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 23 Jun 2013 22:37:27 -0400 Subject: [PATCH] few minor updates Former-commit-id: 2b41a7ee44fde511a47bb76f7c366db123eb2528 --- .../dependencycheck/data/nvdcve/xml/DatabaseUpdater.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java b/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java index 2f2856dc0..adb6def48 100644 --- a/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java +++ b/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java @@ -178,12 +178,14 @@ public class DatabaseUpdater implements CachedWebDataSource { * * @param file the file containing the NVD CVE XML * @param oldVersion contains the file containing the NVD CVE XML 1.2 - * @throws ParserConfigurationException is thrown if there is a parser configuration exception + * @throws ParserConfigurationException is thrown if there is a parser + * configuration exception * @throws SAXException is thrown if there is a SAXException * @throws IOException is thrown if there is a ioexception * @throws SQLException is thrown if there is a sql exception * @throws DatabaseException is thrown if there is a database exception - * @throws ClassNotFoundException thrown if the h2 database driver cannot be loaded + * @throws ClassNotFoundException thrown if the h2 database driver cannot be + * loaded */ private void importXML(File file, File oldVersion) throws ParserConfigurationException, SAXException, IOException, SQLException, DatabaseException, ClassNotFoundException { @@ -374,7 +376,8 @@ public class DatabaseUpdater implements CachedWebDataSource { try { currentTimestamp = Long.parseLong(prop.getProperty(LAST_UPDATED_BASE + String.valueOf(i), "0")); } catch (NumberFormatException ex) { - final String msg = String.format("Error parsing '%s' '%s' from nvdcve.lastupdated", LAST_UPDATED_BASE, String.valueOf(i)); + final String msg = String.format("Error parsing '%s' '%s' from nvdcve.lastupdated", + LAST_UPDATED_BASE, String.valueOf(i)); Logger.getLogger(DatabaseUpdater.class.getName()).log(Level.FINEST, msg, ex); } if (currentTimestamp == cve.getTimestamp()) {