flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fhueske <...@git.apache.org>
Subject [GitHub] flink pull request #3735: [FLINK-6242] [table] Add code generation for DataS...
Date Tue, 18 Apr 2017 20:21:42 GMT
Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3735#discussion_r111991648
  
    --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala
---
    @@ -451,13 +581,34 @@ class CodeGenerator(
           {
             for (i <- accTypes.indices) yield
               j"""
    -             |    accList$i = new java.util.ArrayList<${accTypes(i)}>(2);
    +             |    accList$i = new java.util.ArrayList<${accTypes(i)}>();
    --- End diff --
    
    Why not creating the `ArrayList` with initial capacity 2?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message