From 31c6446cdfe7d94ef17cee23d04e21090b8f6ee6 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Tue, 6 Jun 2023 13:02:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF=20t?= =?UTF-8?q?aked=20->=20took?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/audit/ConsoleMessageCollector.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/audit/ConsoleMessageCollector.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/audit/ConsoleMessageCollector.java index ceb28488..f07208b4 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/audit/ConsoleMessageCollector.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/audit/ConsoleMessageCollector.java @@ -1,26 +1,26 @@ -/** - * Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com). - *

- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/* + * Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com). + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.mybatisflex.core.audit; public class ConsoleMessageCollector implements MessageCollector { - private SqlDebugPrinter printer = (sql, takedTimeMillis) -> { - if (takedTimeMillis != null) { - System.out.println("Flex exec sql taked " + takedTimeMillis + " ms >>> " + sql); + private SqlDebugPrinter printer = (sql, tookTimeMillis) -> { + if (tookTimeMillis != null) { + System.out.println("Flex exec sql took " + tookTimeMillis + " ms >>> " + sql); } else { System.out.println("Flex exec sql >>> " + sql); } @@ -39,6 +39,6 @@ public class ConsoleMessageCollector implements MessageCollector { } public interface SqlDebugPrinter { - void print(String sql, Long takedTimeMillis); + void print(String sql, Long tookTimeMillis); } }