3737import java .sql .Time ;
3838import java .sql .Timestamp ;
3939import java .util .Arrays ;
40+ import java .util .ArrayList ;
4041import java .util .Calendar ;
4142import java .util .HashMap ;
4243import java .util .Iterator ;
@@ -108,7 +109,7 @@ public ResultSet executeQuery() throws SQLException {
108109 this .checkClosed ();
109110 log .info ("Executing query for -> {}" , this .sql );
110111 Iterator <OpResult > itOpResult = this .statementService
111- .executeQuery (this .connection .getSession (), this .sql , this .paramsMap .values (). stream (). toList ( ), this .properties );
112+ .executeQuery (this .connection .getSession (), this .sql , new ArrayList <>( this .paramsMap .values ()), this .properties );
112113 return new ResultSet (itOpResult , this .statementService , this );
113114 }
114115
@@ -117,7 +118,7 @@ public int executeUpdate() throws SQLException {
117118 this .checkClosed ();
118119 log .info ("Executing update for -> {}" , this .sql );
119120 OpResult result = this .statementService .executeUpdate (this .connection .getSession (), this .sql ,
120- this .paramsMap .values (). stream (). toList ( ), this .getStatementUUID (), null );
121+ new ArrayList <>( this .paramsMap .values ()), this .getStatementUUID (), null );
121122 this .connection .setSession (result .getSession ());
122123 return deserialize (result .getValue ().toByteArray (), Integer .class );
123124 }
@@ -129,7 +130,7 @@ public void addBatch() throws SQLException {
129130 Map <String , Object > properties = new HashMap <>();
130131 properties .put (CommonConstants .PREPARED_STATEMENT_ADD_BATCH_FLAG , Boolean .TRUE );
131132 OpResult result = this .statementService .executeUpdate (this .connection .getSession (), this .sql ,
132- this .paramsMap .values (). stream (). toList ( ), this .getStatementUUID (), properties );
133+ new ArrayList <>( this .paramsMap .values ()), this .getStatementUUID (), properties );
133134 this .connection .setSession (result .getSession ());
134135 if (StringUtils .isBlank (this .getStatementUUID ()) && ResultType .UUID_STRING .equals (result .getType ()) &&
135136 !result .getValue ().isEmpty ()) {
@@ -752,7 +753,7 @@ private <T> T callProxy(CallType callType, String targetName, Class<?> returnTyp
752753 );
753754 CallResourceResponse response = this .statementService .callResource (reqBuilder .build ());
754755 this .connection .setSession (response .getSession ());
755- if (this .getStatementUUID () == null && ! response .getResourceUUID (). isBlank ( )) {
756+ if (this .getStatementUUID () == null && StringUtils . isNotBlank ( response .getResourceUUID ())) {
756757 this .setStatementUUID (response .getResourceUUID ());
757758 }
758759 if (Void .class .equals (returnType )) {
0 commit comments