Made StopWatch a field, so we don't have to pass it around all the time.
This commit is contained in:
parent
ff2287d5d8
commit
fe9c1fe668
@ -114,9 +114,10 @@ public class DefaultGenerator extends AbstractGenerator {
|
||||
|
||||
private static final JooqLogger log = JooqLogger.getLogger(DefaultGenerator.class);
|
||||
|
||||
StopWatch watch = new StopWatch();
|
||||
|
||||
@Override
|
||||
public void generate(Database database) throws IOException {
|
||||
StopWatch watch = new StopWatch();
|
||||
|
||||
log.info("Database parameters");
|
||||
log.info("----------------------------------------------------------");
|
||||
@ -157,14 +158,13 @@ public class DefaultGenerator extends AbstractGenerator {
|
||||
// ----------------------------------------------------------------------
|
||||
log.info("Generating schemata", "Total: " + database.getSchemata().size());
|
||||
for (SchemaDefinition schema : database.getSchemata()) {
|
||||
generate(database, schema, watch);
|
||||
generate(database, schema);
|
||||
}
|
||||
}
|
||||
|
||||
private void generate(
|
||||
Database database,
|
||||
SchemaDefinition schema,
|
||||
StopWatch watch) throws IOException {
|
||||
SchemaDefinition schema) throws IOException {
|
||||
|
||||
File targetSchemaDir = strategy.getFile(schema).getParentFile();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user