mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
checkstyle corrections
Former-commit-id: d23c5d17629f8484c1c07d328c9c1b74a678e062
This commit is contained in:
@@ -112,7 +112,10 @@ public final class ConnectionFactory {
|
|||||||
//yes, yes - hard-coded password - only if there isn't one in the properties file.
|
//yes, yes - hard-coded password - only if there isn't one in the properties file.
|
||||||
password = Settings.getString(Settings.KEYS.DB_PASSWORD, "DC-Pass1337!");
|
password = Settings.getString(Settings.KEYS.DB_PASSWORD, "DC-Pass1337!");
|
||||||
try {
|
try {
|
||||||
connectionString = Settings.getConnectionString(Settings.KEYS.DB_CONNECTION_STRING, Settings.KEYS.DB_FILE_NAME, Settings.KEYS.DB_VERSION);
|
connectionString = Settings.getConnectionString(
|
||||||
|
Settings.KEYS.DB_CONNECTION_STRING,
|
||||||
|
Settings.KEYS.DB_FILE_NAME,
|
||||||
|
Settings.KEYS.DB_VERSION);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
LOGGER.log(Level.FINE,
|
LOGGER.log(Level.FINE,
|
||||||
"Unable to retrieve the database connection string", ex);
|
"Unable to retrieve the database connection string", ex);
|
||||||
@@ -226,7 +229,7 @@ public final class ConnectionFactory {
|
|||||||
*/
|
*/
|
||||||
private static boolean h2DataFileExists() throws IOException {
|
private static boolean h2DataFileExists() throws IOException {
|
||||||
final File dir = Settings.getDataDirectory();
|
final File dir = Settings.getDataDirectory();
|
||||||
String name = Settings.getString(Settings.KEYS.DB_FILE_NAME);
|
final String name = Settings.getString(Settings.KEYS.DB_FILE_NAME);
|
||||||
final String fileName = String.format(name, DB_SCHEMA_VERSION);
|
final String fileName = String.format(name, DB_SCHEMA_VERSION);
|
||||||
final File file = new File(dir, fileName);
|
final File file = new File(dir, fileName);
|
||||||
return file.exists();
|
return file.exists();
|
||||||
|
|||||||
Reference in New Issue
Block a user