leventov opened a new issue #9286: Prohibit assigning ScheduledExecutorService 
into ExecutorService
URL: https://github.com/apache/druid/issues/9286
 
 
   It's needless, a simple ExecutorService should be created instead.
   
   This Structural Search pattern finds two occurrences in the codebase: 
   
   ```
         <searchConfiguration name="Create a simple ExecutorService (not 
scheduled)" text="$x$ = $y$;" recursive="true" caseInsensitive="true" 
type="JAVA" pattern_context="default">
           <constraint name="__context__" within="" contains="" />
           <constraint name="x" 
nameOfExprType="java\.util\.concurrent\.ExecutorService" 
expressionTypes="java.util.concurrent.ExecutorService" within="" contains="" />
           <constraint name="y" 
nameOfExprType="java\.util\.concurrent\.ScheduledExecutorService" 
expressionTypes="java.util.concurrent.ScheduledExecutorService" 
exprTypeWithinHierarchy="true" within="" contains="" />
         </searchConfiguration>
   ```
   
   Worth experimenting with variable or field declarations, too.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to