Skip to content

Commit

Permalink
SpotBugs annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadnoveljic committed Nov 20, 2024
1 parent 049ce78 commit 2a45328
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import datadog.trace.bootstrap.instrumentation.jdbc.DBInfo;
import datadog.trace.bootstrap.instrumentation.jdbc.DBQueryInfo;
import datadog.trace.bootstrap.instrumentation.jdbc.JDBCConnectionUrlParser;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.sql.Connection;
Expand Down Expand Up @@ -328,6 +329,9 @@ public long setContextInfo(Connection connection, DBInfo dbInfo) {
* @param span The span of the instrumented statement
* @param connection The same connection as the one that will be used for the actual statement
*/
@SuppressFBWarnings(
value = "SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE",
justification = "Prepared statement not possible with SET")
public void setApplicationName(AgentSpan span, Connection connection) {
final long startTime = System.currentTimeMillis();
try {
Expand Down

0 comments on commit 2a45328

Please sign in to comment.