mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
[Contradictory type checks](https://lgtm.com/projects/g/elastic/elasticsearch/snapshot/dist-1916470085-1548143539391/files/x-pack/plugin/sql/jdbc/src/main/java/org/elasticsearch/xpack/sql/jdbc/debug/Debug.java#xe223478b74721d35:1) (#38154)
This commit is contained in:
parent
1edebfc834
commit
336c92e4d3
@ -91,12 +91,12 @@ final class Debug {
|
||||
static Statement proxy(Object statement, StatementProxy handler) {
|
||||
Class<? extends Statement> i = Statement.class;
|
||||
|
||||
if (statement instanceof PreparedStatement) {
|
||||
i = PreparedStatement.class;
|
||||
}
|
||||
else if (statement instanceof CallableStatement) {
|
||||
if (statement instanceof CallableStatement) {
|
||||
i = CallableStatement.class;
|
||||
}
|
||||
else if (statement instanceof PreparedStatement) {
|
||||
i = PreparedStatement.class;
|
||||
}
|
||||
|
||||
return createProxy(i, handler);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user