github-advanced-security[bot] commented on code in PR #19548:
URL: https://github.com/apache/druid/pull/19548#discussion_r4182172615


##########
processing/src/main/java/org/apache/druid/query/dimension/DimensionSpec.java:
##########
@@ -58,6 +59,32 @@
   @Nullable
   ExtractionFn getExtractionFn();
 
+  /**
+   * Returns an extraction function and registers any resources acquired for 
it with {@code closer}
+   * The closer must outlive all uses of the returned function
+   */
+  @Nullable
+  default ExtractionFn getExtractionFn(final Closer closer)
+  {
+    return getExtractionFn();

Review Comment:
   ## CodeQL / Deprecated method or constructor invocation
   
   Invoking [DimensionSpec.getExtractionFn](1) should be avoided because it has 
been deprecated.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/12048)



-- 
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