You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/01/26 05:12:29 UTC

[iotdb] branch fix_sonar_sessionpool created (now e187f2e)

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

haonan pushed a change to branch fix_sonar_sessionpool
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at e187f2e  Suppress unnecessary warning in Session Pool

This branch includes the following new commits:

     new e187f2e  Suppress unnecessary warning in Session Pool

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: Suppress unnecessary warning in Session Pool

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch fix_sonar_sessionpool
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit e187f2ecfda7d086fd365a6ca68f8d3b5180e1f6
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Jan 26 13:11:48 2021 +0800

    Suppress unnecessary warning in Session Pool
---
 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..bc3f1c3 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")
   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")
   public SessionDataSetWrapper executeRawDataQuery(List<String> paths, long startTime, long endTime)
       throws IoTDBConnectionException, StatementExecutionException {
     for (int i = 0; i < RETRY; i++) {