mariofusco commented on code in PR #6475:
URL: 
https://github.com/apache/incubator-kie-drools/pull/6475#discussion_r2402325551


##########
drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulKnowledgeSessionImpl.java:
##########
@@ -660,10 +663,12 @@ protected QueryResultsImpl internalGetQueryResult(boolean 
calledFromRHS, String
 
             this.handleFactory.destroyFactHandle( handle);
 
-            return new QueryResultsImpl( (List<QueryRowWithSubruleIndex>) 
queryObject.getQueryResultCollector().getResults(),
+            QueryResultsImpl queryResultsImpl = new QueryResultsImpl( 
(List<QueryRowWithSubruleIndex>) 
queryObject.getQueryResultCollector().getResults(),

Review Comment:
   Why introducing this variable?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to