From 5d5de7b2a1ababbb1ecbc0b614e04e072ef6d29f Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 9 Nov 2022 11:05:19 +0800 Subject: [PATCH] fix some typos Signed-off-by: cui fliter --- .../main/java/com/alibaba/druid/filter/logging/LogFilter.java | 2 +- .../com/alibaba/druid/pool/ha/HighAvailableDataSource.java | 2 +- .../druid/bvt/pool/vendor/MySqlExceptionSorterTest_1.java | 4 ++-- .../druid/bvt/pool/vendor/MySqlExceptionSorterTest_2.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java b/core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java index 8c01816045..5788e8a591 100644 --- a/core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java +++ b/core/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java @@ -456,7 +456,7 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM super.connection_commit(chain, connection); if (connectionCommitAfterLogEnable && isConnectionLogEnabled()) { - connectionLog("{conn-" + connection.getId() + "} commited"); + connectionLog("{conn-" + connection.getId() + "} committed"); } } diff --git a/core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java b/core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java index e05e54427e..d4dc970dc0 100644 --- a/core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java +++ b/core/src/main/java/com/alibaba/druid/pool/ha/HighAvailableDataSource.java @@ -294,7 +294,7 @@ public class HighAvailableDataSource extends WrapperAdapter implements DataSourc private void createNodeMap() { if (nodeListener == null) { - // Compatiable with the old version. + // Compatible with the old version. // Create a FileNodeListener to watch the dataSourceFile. FileNodeListener listener = new FileNodeListener(); listener.setFile(dataSourceFile); diff --git a/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_1.java b/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_1.java index 80218ea22e..62c768e4bf 100644 --- a/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_1.java +++ b/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_1.java @@ -26,7 +26,7 @@ public class MySqlExceptionSorterTest_1 extends PoolTestCase { } SQLException rootException = new SQLException( - new SQLException("Could not retrieve transation read-only status server", + new SQLException("Could not retrieve transition read-only status server", (Exception) constructor.newInstance(null, 0, 0, null) ) ); @@ -42,7 +42,7 @@ public class MySqlExceptionSorterTest_1 extends PoolTestCase { } SQLException rootException = new SQLException( - new SQLException("Could not retrieve transation read-only status server", + new SQLException("Could not retrieve transition read-only status server", (Exception) constructor.newInstance(null, null) ) ); diff --git a/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_2.java b/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_2.java index 07316e08c8..80555263c6 100644 --- a/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_2.java +++ b/core/src/test/java/com/alibaba/druid/bvt/pool/vendor/MySqlExceptionSorterTest_2.java @@ -17,7 +17,7 @@ public class MySqlExceptionSorterTest_2 extends PoolTestCase { MySqlExceptionSorter sorter = new MySqlExceptionSorter(); SQLException rootException = new SQLException( - new SQLException("Could not retrieve transation read-only status server", + new SQLException("Could not retrieve transition read-only status server", new SocketTimeoutException() ) );