From 945e21ea3f0cf7ede77d86a3f8a5a42a95300ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=8C?= <253498229@qq.com> Date: Tue, 10 Dec 2019 10:08:05 +0800 Subject: [PATCH] review --- .../test/java/cn/codeforfun/migrate/core/MigrateTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mysql-migrate/src/test/java/cn/codeforfun/migrate/core/MigrateTest.java b/mysql-migrate/src/test/java/cn/codeforfun/migrate/core/MigrateTest.java index 64434e1..618335d 100644 --- a/mysql-migrate/src/test/java/cn/codeforfun/migrate/core/MigrateTest.java +++ b/mysql-migrate/src/test/java/cn/codeforfun/migrate/core/MigrateTest.java @@ -31,9 +31,9 @@ public void diff() throws SQLException { DatabaseInfo to = new DatabaseInfo(TO_HOST, TO_PORT, TO_TABLE, TO_USERNAME, TO_PASSWORD); Migrate migrate = new Migrate().from(from).to(to); DiffResult diffResult = migrate.diff(); - List sql = diffResult.getSqlList(); - for (String s : sql) { - System.out.println(s); + List sqlList = diffResult.getSqlList(); + for (String sql : sqlList) { + System.out.println(sql); } }