You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2021/01/26 06:08:49 UTC
[iotdb] branch master updated: Suppress unnecessary warning in
Session Pool (#2581)
This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new f065111 Suppress unnecessary warning in Session Pool (#2581)
f065111 is described below
commit f0651117ea3a55aaa5ef989925451dc64f416fbc
Author: Haonan <hh...@outlook.com>
AuthorDate: Tue Jan 26 14:08:30 2021 +0800
Suppress unnecessary warning in Session Pool (#2581)
---
session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java b/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
index f4c1cc1..d37e2af 100644
--- a/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
+++ b/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
@@ -979,6 +979,7 @@ public class SessionPool {
* @return result set Notice that you must get the result instance. Otherwise a data leakage will
* happen
*/
+ @SuppressWarnings("squid:S2045") // Suppress wrapper not closed warning
public SessionDataSetWrapper executeQueryStatement(String sql)
throws IoTDBConnectionException, StatementExecutionException {
for (int i = 0; i < RETRY; i++) {
@@ -1025,6 +1026,7 @@ public class SessionPool {
}
}
+ @SuppressWarnings("squid:S2045") // Suppress wrapper not closed warning
public SessionDataSetWrapper executeRawDataQuery(List<String> paths, long startTime, long endTime)
throws IoTDBConnectionException, StatementExecutionException {
for (int i = 0; i < RETRY; i++) {