Github user sudheeshkatkam commented on a diff in the pull request:

    https://github.com/apache/drill/pull/843#discussion_r118025364
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/ImportGrabber.java 
---
    @@ -63,9 +62,21 @@ public void 
traverseStaticImportOnDemandDeclaration(StaticImportOnDemandDeclarat
     
       }
     
    -  public static List<String> getMethods(Java.CompilationUnit cu){
    -    ImportGrabber visitor = new ImportGrabber();
    -    
cu.getPackageMemberTypeDeclarations()[0].accept(visitor.finder.comprehensiveVisitor());
    +  /**
    +   * Creates list of imports that are present in compilation unit.
    +   * For example:
    +   * [import io.netty.buffer.DrillBuf;, import 
org.apache.drill.exec.expr.DrillSimpleFunc;]
    +   *
    +   * @param compilationUnit compilation unit
    +   * @return list of imports
    +   */
    +  public static List<String> getImports(Java.CompilationUnit 
compilationUnit){
    --- End diff --
    
    If the returned list was empty previously, what was the functionality 
previously?
    
    And looks to me like `FunctionInitializer#imports` is unused. So should 
`ImportGrabber` be removed?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to