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

haonan 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 fc1e12c  Suppress unnecessary warning in Session Pool (#2581)
fc1e12c is described below

commit fc1e12cb1054c77f6473651745d7fa282bf7d114
Author: HTHou <[email protected]>
AuthorDate: Tue Jan 26 14:40:51 2021 +0800

    Suppress unnecessary warning in Session Pool (#2581)
---
 session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 d37e2af..b97c3ea 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,7 +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
+  @SuppressWarnings("squid:S2095") // Suppress wrapper not closed warning
   public SessionDataSetWrapper executeQueryStatement(String sql)
       throws IoTDBConnectionException, StatementExecutionException {
     for (int i = 0; i < RETRY; i++) {
@@ -1026,7 +1026,7 @@ public class SessionPool {
     }
   }
 
-  @SuppressWarnings("squid:S2045") // Suppress wrapper not closed warning
+  @SuppressWarnings("squid:S2095") // 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++) {

Reply via email to