= code cleanup: remove unnessary boxing

This commit is contained in:
zavakid
2020-09-18 00:54:23 +08:00
parent 435db30b7b
commit 362974b1c2

View File

@@ -229,7 +229,7 @@ public class MysqlEventParser extends AbstractMysqlEventParser implements CanalE
} else if (!mysqlConnection.isConnected()) {
mysqlConnection.connect();
}
Long startTime = System.currentTimeMillis();
long startTime = System.currentTimeMillis();
// 可能心跳sql为select 1
if (StringUtils.startsWithIgnoreCase(detectingSQL.trim(), "select")
@@ -241,7 +241,7 @@ public class MysqlEventParser extends AbstractMysqlEventParser implements CanalE
mysqlConnection.update(detectingSQL);
}
Long costTime = System.currentTimeMillis() - startTime;
long costTime = System.currentTimeMillis() - startTime;
if (haController != null && haController instanceof HeartBeatCallback) {
((HeartBeatCallback) haController).onSuccess(costTime);
}