Copilot commented on code in PR #13320:
URL: https://github.com/apache/gluten/pull/13320#discussion_r4281118296
##########
backends-velox/src/main/scala/org/apache/spark/rpc/GlutenDriverEndpoint.scala:
##########
@@ -117,7 +117,7 @@ object GlutenDriverEndpoint extends Logging
def collectResources(executionId: String, resourceId: String): Unit = {
val resources = executionResourceRelation
- .get(executionId, (_: String) => new util.HashSet[String]())
+ .get(executionId, (_: String) =>
java.util.concurrent.ConcurrentHashMap.newKeySet[String]())
Review Comment:
Prefer using an imported type (e.g., `ConcurrentHashMap`) or a locally
aliased factory to avoid fully-qualified names in-line. This improves
readability and keeps imports consistent with the rest of the file; for
example, import `java.util.concurrent.ConcurrentHashMap` and use
`ConcurrentHashMap.newKeySet[String]()` in the lambda.
--
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]