[ 
https://issues.apache.org/jira/browse/DRILL-6281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16449124#comment-16449124
 ] 

ASF GitHub Bot commented on DRILL-6281:
---------------------------------------

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

    https://github.com/apache/drill/pull/1238#discussion_r183578626
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/FooterGatherer.java
 ---
    @@ -66,8 +69,8 @@ private static void checkMagicBytes(FileStatus status, 
byte[] data, int offset)
       }
     
       public static List<Footer> getFooters(final Configuration conf, 
List<FileStatus> statuses, int parallelism) throws IOException {
    -    final List<TimedRunnable<Footer>> readers = Lists.newArrayList();
    -    List<Footer> foundFooters = Lists.newArrayList();
    +    final List<TimedCallable<Footer>> readers = new ArrayList<>();
    +    final List<Footer> foundFooters = new ArrayList<>();
    --- End diff --
    
    Please see Guava Java doc 
[Lists.newArrayList()](http://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/Lists.html#newArrayList--):
    
    > **Note for Java 7 and later:** this method is now unnecessary and should 
be treated as deprecated. Instead, use the ArrayList 
[constructor](https://docs.oracle.com/javase/9/docs/api/java/util/ArrayList.html?is-external=true#ArrayList--)
 directly, taking advantage of the new ["diamond" syntax](http://goo.gl/iz2Wi).


> Refactor TimedRunnable
> ----------------------
>
>                 Key: DRILL-6281
>                 URL: https://issues.apache.org/jira/browse/DRILL-6281
>             Project: Apache Drill
>          Issue Type: Sub-task
>            Reporter: Vlad Rozov
>            Assignee: Vlad Rozov
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to