Fix typos

This commit is contained in:
Stefan Neuhaus
2017-10-08 14:50:21 +02:00
parent 51d7618661
commit 143c8d151f
5 changed files with 5 additions and 5 deletions

View File

@@ -126,7 +126,7 @@ public class Purge extends Task {
log(msg, Project.MSG_ERR); log(msg, Project.MSG_ERR);
} }
} else { } else {
final String msg = String.format("Unable to purge database; the database file does not exists: %s", db.getAbsolutePath()); final String msg = String.format("Unable to purge database; the database file does not exist: %s", db.getAbsolutePath());
if (this.failOnError) { if (this.failOnError) {
throw new BuildException(msg); throw new BuildException(msg);
} }

View File

@@ -137,7 +137,7 @@ public class App {
exitCode = -5; exitCode = -5;
} }
} else { } else {
LOGGER.error("Unable to purge database; the database file does not exists: {}", db.getAbsolutePath()); LOGGER.error("Unable to purge database; the database file does not exist: {}", db.getAbsolutePath());
exitCode = -6; exitCode = -6;
} }
} catch (IOException ex) { } catch (IOException ex) {

View File

@@ -179,7 +179,7 @@ public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
} }
if (file != null) { if (file != null) {
if (!file.exists()) { if (!file.exists()) {
final String msg = String.format("Suppression file '%s' does not exists", file.getPath()); final String msg = String.format("Suppression file '%s' does not exist", file.getPath());
LOGGER.warn(msg); LOGGER.warn(msg);
throw new SuppressionParseException(msg); throw new SuppressionParseException(msg);
} }

View File

@@ -85,7 +85,7 @@ public class PurgeMojo extends BaseDependencyCheckMojo {
getLog().error(msg); getLog().error(msg);
} }
} else { } else {
final String msg = String.format("Unable to purge database; the database file does not exists: %s", db.getAbsolutePath()); final String msg = String.format("Unable to purge database; the database file does not exist: %s", db.getAbsolutePath());
if (this.isFailOnError()) { if (this.isFailOnError()) {
throw new MojoFailureException(msg); throw new MojoFailureException(msg);
} }

View File

@@ -922,7 +922,7 @@ public final class Settings {
* Returns a connection string from the configured properties. If the * Returns a connection string from the configured properties. If the
* connection string contains a %s, this method will determine the 'data' * connection string contains a %s, this method will determine the 'data'
* directory and replace the %s with the path to the data directory. If the * directory and replace the %s with the path to the data directory. If the
* data directory does not exists it will be created. * data directory does not exist it will be created.
* *
* @param connectionStringKey the property file key for the connection * @param connectionStringKey the property file key for the connection
* string * string