You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2020/08/09 09:44:51 UTC

[jmeter] 02/02: Don't use toString here, as it is not needed and target could be null

This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit b64a68c2a9e331b2334b4dd3768829bb196ef947
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Sun Aug 9 11:33:43 2020 +0200

    Don't use toString here, as it is not needed and target could be null
---
 .../java/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/protocol/jdbc/src/main/java/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java b/src/protocol/jdbc/src/main/java/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
index 5fb5255..96f37eb 100644
--- a/src/protocol/jdbc/src/main/java/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
+++ b/src/protocol/jdbc/src/main/java/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
@@ -631,7 +631,7 @@ public abstract class AbstractJDBCTestElement extends AbstractTestElement implem
                 s.close();
             }
         } catch (SQLException e) {
-            log.warn("Error closing Statement {}", s.toString(), e);
+            log.warn("Error closing Statement {}", s, e);
         }
     }