diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java index e82296225..8eb12f35e 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java @@ -128,7 +128,7 @@ public class Engine implements FileFilter, AutoCloseable { * * @return whether or not the database is required */ - public boolean isDatabseRequired() { + private boolean isDatabaseRequired() { return databaseRequired; } @@ -254,7 +254,7 @@ public class Engine implements FileFilter, AutoCloseable { */ @Override public void close() { - if (mode.isDatabseRequired()) { + if (mode.isDatabaseRequired()) { if (database != null) { database.close(); database = null; @@ -699,7 +699,7 @@ public class Engine implements FileFilter, AutoCloseable { * @throws ExceptionCollection thrown if fatal exceptions occur */ private void initializeAndUpdateDatabase(final List exceptions) throws ExceptionCollection { - if (!mode.isDatabseRequired()) { + if (!mode.isDatabaseRequired()) { return; } boolean autoUpdate = true; @@ -869,7 +869,7 @@ public class Engine implements FileFilter, AutoCloseable { * @throws UpdateException thrown if the operation fails */ public void doUpdates(boolean remainOpen) throws UpdateException { - if (mode.isDatabseRequired()) { + if (mode.isDatabaseRequired()) { H2DBLock dblock = null; try { if (ConnectionFactory.isH2Connection(settings)) { @@ -930,7 +930,7 @@ public class Engine implements FileFilter, AutoCloseable { * opening the database */ public void openDatabase(boolean readOnly, boolean lockRequired) { - if (mode.isDatabseRequired() && database == null) { + if (mode.isDatabaseRequired() && database == null) { //needed to update schema any required schema changes database = new CveDB(settings); if (readOnly @@ -1048,7 +1048,7 @@ public class Engine implements FileFilter, AutoCloseable { * @throws NoDataException thrown if no data exists in the CPE Index */ private void ensureDataExists() throws NoDataException { - if (mode.isDatabseRequired() && (database == null || !database.dataExists())) { + if (mode.isDatabaseRequired() && (database == null || !database.dataExists())) { throw new NoDataException("No documents exist"); } }