4141 * different types of aggregation function.
4242 * <p>
4343 *
44- * @author Christian Glencross
44+ * @author Christian Glencross
4545 */
4646@ BTrace
4747public class JdbcQueries {
@@ -70,7 +70,7 @@ public class JdbcQueries {
7070
7171 /**
7272 * If "--stack" is passed on command line, print the Java stack trace of the JDBC statement.
73- *
73+ *
7474 * Otherwise we print the SQL.
7575 */
7676 private static boolean useStackTrace = Sys .$ (2 ) != null && Strings .strcmp ("--stack" , Sys .$ (2 )) == 0 ;
@@ -80,7 +80,7 @@ public class JdbcQueries {
8080
8181 /**
8282 * Capture SQL used to create prepared statements.
83- *
83+ *
8484 * @param args
8585 * the list of method parameters. args[1] is the SQL.
8686 */
@@ -91,7 +91,7 @@ public static void onPrepare(AnyType[] args) {
9191
9292 /**
9393 * Cache SQL associated with a prepared statement.
94- *
94+ *
9595 * @param arg
9696 * the return value from the prepareXxx() method.
9797 */
@@ -109,7 +109,7 @@ public static void onPrepareReturn(@Return Statement preparedStatement) {
109109 // Otherwise the SQL is in the first argument.
110110
111111 @ OnMethod (clazz = "+java.sql.Statement" , method = "/execute($|Update|Query|Batch)/" )
112- public static void onExecute (@ Self Object currentStatement , AnyType [] args ) {
112+ public static void onExecute (@ Self Statement currentStatement , AnyType [] args ) {
113113 if (args .length == 0 ) {
114114 // No SQL argument; lookup the SQL from the prepared statement
115115 executingStatement = Collections .get (preparedStatementDescriptions , (Statement ) currentStatement );
0 commit comments