[Minor] code cleanup

This commit is contained in:
Robert von Burg 2015-08-23 16:28:24 +02:00
parent 4b9e166025
commit 363c21d30a
1 changed files with 3 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class DbSchemaVersionCheck {
String realm = entry.getKey();
DataSource ds = entry.getValue();
DbMigrationState dbMigrationState = checkSchemaVersion(realm, ds);
dbMigrationStates.put(realm, dbMigrationState);
this.dbMigrationStates.put(realm, dbMigrationState);
}
}
@ -248,7 +248,8 @@ public class DbSchemaVersionCheck {
String schemaResourceS = MessageFormat.format("/{0}_db_schema_{1}_{2}.sql", scriptPrefix, dbVersion, type);
try (InputStream stream = ctxClass.getResourceAsStream(schemaResourceS);) {
DBC.PRE.assertNotNull(
MessageFormat.format("Schema Resource file with name {0} does not exist!", schemaResourceS), stream);
MessageFormat.format("Schema Resource file with name {0} does not exist!", schemaResourceS),
stream);
return FileHelper.readStreamToString(stream);
} catch (IOException e) {
throw new DbException("Schema creation resource file is missing or could not be read: " + schemaResourceS,