yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sek...@apache.org
Subject yetus git commit: YETUS-538 set capacity on ArrayList init where possible
Date Fri, 08 Sep 2017 08:59:42 GMT
Repository: yetus
Updated Branches:
  refs/heads/master d5ca095d0 -> fe421608c


YETUS-538 set capacity on ArrayList init where possible

Signed-off-by: Kengo Seki <sekikn@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/fe421608
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/fe421608
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/fe421608

Branch: refs/heads/master
Commit: fe421608ce0b47ca2883c0337a719b97a97b7e81
Parents: d5ca095
Author: Gezapeti Cseh <gezapeti@apache.org>
Authored: Sat Sep 2 23:58:30 2017 +0200
Committer: Kengo Seki <sekikn@apache.org>
Committed: Fri Sep 8 04:57:24 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/yetus/audience/tools/StabilityOptions.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/fe421608/audience-annotations-component/audience-annotations/src/main/java/org/apache/yetus/audience/tools/StabilityOptions.java
----------------------------------------------------------------------
diff --git a/audience-annotations-component/audience-annotations/src/main/java/org/apache/yetus/audience/tools/StabilityOptions.java
b/audience-annotations-component/audience-annotations/src/main/java/org/apache/yetus/audience/tools/StabilityOptions.java
index c22e308..854c7b2 100644
--- a/audience-annotations-component/audience-annotations/src/main/java/org/apache/yetus/audience/tools/StabilityOptions.java
+++ b/audience-annotations-component/audience-annotations/src/main/java/org/apache/yetus/audience/tools/StabilityOptions.java
@@ -51,7 +51,7 @@ class StabilityOptions {
   }
 
   public static String[][] filterOptions(String[][] options) {
-    List<String[]> optionsList = new ArrayList<String[]>();
+    List<String[]> optionsList = new ArrayList<String[]>(options.length);
     for (int i = 0; i < options.length; i++) {
       if (!options[i][0].equalsIgnoreCase(UNSTABLE_OPTION)
           && !options[i][0].equalsIgnoreCase(EVOLVING_OPTION)


Mime
View raw message