CPD Results
The following document contains the results of PMD's CPD 7.3.0.
Duplications
File | Line |
---|---|
org\apache\ibatis\migration\operations\PendingOperation.java | 58 |
org\apache\ibatis\migration\operations\UpOperation.java | 75 |
for (Change change : pending) { if (stepCount == 0 && hook != null) { hookBindings.put(MigrationHook.HOOK_CONTEXT, new HookContext(connectionProvider, runner, null)); hook.before(hookBindings); } if (hook != null) { hookBindings.put(MigrationHook.HOOK_CONTEXT, new HookContext(connectionProvider, runner, new Change(change))); hook.beforeEach(hookBindings); } println(printStream, Util.horizontalLine("Applying: " + change.getFilename(), 80)); try (Reader scriptReader = migrationsLoader.getScriptReader(change, false)) { runner.runScript(scriptReader); } insertChangelog(change, con, option); println(printStream); if (hook != null) { hookBindings.put(MigrationHook.HOOK_CONTEXT, new HookContext(connectionProvider, runner, new Change(change))); hook.afterEach(hookBindings); } stepCount++; |