[hg] main-silver: use ArrayList instead of LinkedList, because A...

  • From: Tomas Hurka < >
  • To:
  • Subject: [hg] main-silver: use ArrayList instead of LinkedList, because A...
  • Date: Mon, 18 Feb 2013 00:50:12 -0800

changeset 581fc31577d7 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/581fc31577d7
description:
        use ArrayList instead of LinkedList, because ArrayList consumes less 
memory

diffstat:

 csl.api/src/org/netbeans/modules/csl/core/TLIndexerFactory.java |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff --git a/csl.api/src/org/netbeans/modules/csl/core/TLIndexerFactory.java 
b/csl.api/src/org/netbeans/modules/csl/core/TLIndexerFactory.java
--- a/csl.api/src/org/netbeans/modules/csl/core/TLIndexerFactory.java
+++ b/csl.api/src/org/netbeans/modules/csl/core/TLIndexerFactory.java
@@ -47,7 +47,6 @@
 import java.util.Collection;
 import java.util.Collections;
 import java.util.IdentityHashMap;
-import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
@@ -231,7 +230,7 @@
             Collection<SimpleError> storedErrors = 
this.errors.get(indexable);
 
             if (storedErrors == null) {
-                this.errors.put(indexable, storedErrors = new 
LinkedList<SimpleError>());
+                this.errors.put(indexable, storedErrors = new 
ArrayList<SimpleError>());
             }
 
             if (errors == null) {

[hg] main-silver: use ArrayList instead of LinkedList, because A...

Tomas Hurka 02/18/2013

<Possible follow-up(s)>

[hg] main-silver: use ArrayList instead of LinkedList, because A...

Tomas Hurka 02/18/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close