This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 1177ce95177af8326a706aaa308df0e043a96c98 Author: KangZhiDong <world...@gmail.com> AuthorDate: Fri Sep 6 22:53:51 2019 +0800 fix typo(an sql) --- java/org/apache/catalina/realm/JDBCRealm.java | 6 +++--- modules/jdbc-pool/doc/jdbc-pool.xml | 2 +- .../main/java/org/apache/tomcat/jdbc/pool/PoolConfiguration.java | 4 ++-- .../src/main/java/org/apache/tomcat/jdbc/pool/TrapException.java | 2 +- .../main/java/org/apache/tomcat/jdbc/pool/mbeans-descriptors.xml | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java/org/apache/catalina/realm/JDBCRealm.java b/java/org/apache/catalina/realm/JDBCRealm.java index 45e2faa..9679de2 100644 --- a/java/org/apache/catalina/realm/JDBCRealm.java +++ b/java/org/apache/catalina/realm/JDBCRealm.java @@ -339,7 +339,7 @@ public class JDBCRealm // This needs rewritten with better pooling support, the existing code // needs signature changes since the Prepared statements needs cached // with the connections. - // The code below will try twice if there is a SQLException so the + // The code below will try twice if there is an SQLException so the // connection may try to be opened again. On normal conditions (including // invalid login - the above is only used once. int numberOfTries = 2; @@ -546,7 +546,7 @@ public class JDBCRealm // This needs rewritten with better pooling support, the existing code // needs signature changes since the Prepared statements needs cached // with the connections. - // The code below will try twice if there is a SQLException so the + // The code below will try twice if there is an SQLException so the // connection may try to be opened again. On normal conditions (including // invalid login - the above is only used once. int numberOfTries = 2; @@ -627,7 +627,7 @@ public class JDBCRealm // This needs rewritten wuth better pooling support, the existing code // needs signature changes since the Prepared statements needs cached // with the connections. - // The code below will try twice if there is a SQLException so the + // The code below will try twice if there is an SQLException so the // connection may try to be opened again. On normal conditions (including // invalid login - the above is only used once. int numberOfTries = 2; diff --git a/modules/jdbc-pool/doc/jdbc-pool.xml b/modules/jdbc-pool/doc/jdbc-pool.xml index b21c01f..360ba43 100644 --- a/modules/jdbc-pool/doc/jdbc-pool.xml +++ b/modules/jdbc-pool/doc/jdbc-pool.xml @@ -119,7 +119,7 @@ <subsection name="Additional features"> <p>The Tomcat connection pool offers a few additional features over what most other pools let you do:</p> <ul> - <li><code>initSQL</code> - the ability to run a SQL statement exactly once, when the connection is created</li> + <li><code>initSQL</code> - the ability to run an SQL statement exactly once, when the connection is created</li> <li><code>validationInterval</code> - in addition to running validations on connections, avoid running them too frequently.</li> <li><code>jdbcInterceptors</code> - flexible and pluggable interceptors to create any customizations around the pool, the query execution and the result set handling. More on this in the advanced section.</li> diff --git a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PoolConfiguration.java b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PoolConfiguration.java index 2359fc8..4ce7708 100644 --- a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PoolConfiguration.java +++ b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PoolConfiguration.java @@ -501,7 +501,7 @@ public interface PoolConfiguration { * The SQL query that will be used to validate connections from this * pool before returning them to the caller or pool. * If specified, this query does not have to return any data, - * it just can't throw a SQLException. + * it just can't throw an SQLException. * The default value is null. * Example values are SELECT 1(mysql), * select 1 from dual(oracle), @@ -514,7 +514,7 @@ public interface PoolConfiguration { * The SQL query that will be used to validate connections from this * pool before returning them to the caller or pool. * If specified, this query does not have to return any data, - * it just can't throw a SQLException. + * it just can't throw an SQLException. * The default value is null. * Example values are SELECT 1(mysql), * select 1 from dual(oracle), diff --git a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/TrapException.java b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/TrapException.java index 951b803..4f93c0c 100644 --- a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/TrapException.java +++ b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/TrapException.java @@ -23,7 +23,7 @@ import java.lang.reflect.Method; import java.sql.SQLException; /** * Interceptor that traps any unhandled exception types and throws an exception that has been declared by the method - * called, or throw a SQLException if it is declared. + * called, or throw an SQLException if it is declared. * If the caught exception is not declared, and the method doesn't throw SQLException, then this interceptor will * throw a RuntimeException * @author fhanik diff --git a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/mbeans-descriptors.xml b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/mbeans-descriptors.xml index 38b009f..ee83e1e 100644 --- a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/mbeans-descriptors.xml +++ b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/mbeans-descriptors.xml @@ -117,7 +117,7 @@ writeable="false"/> <attribute name="maxWait" - description="The time to wait in milliseconds before a SQLException is thrown when a connection is requested" + description="The time to wait in milliseconds before an SQLException is thrown when a connection is requested" type="java.lang.Integer" writeable="false"/> @@ -214,7 +214,7 @@ writeable="false"/> <attribute name="initSQL" - description="A SQL executed once per connection, when it is established" + description="An SQL executed once per connection, when it is established" type="java.lang.String" writeable="false"/> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org