Bug 27110

Summary: ListenerList should default its size to 1
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P2 Keywords: performance
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 27938    
Bug Blocks:    

Description Adam Kiezun CLA 2002-11-25 12:34:05 EST
i'm having a hard time finding a single instance of ListenerList class 
(i'm running under a profiler) 
in which the list would contain more than 1 element

so the other 2 are almost always wasted
because this class is instantiated many, many times (i just started and see 
more than 1300 instances) the default size should be 1. 
It can then grow if necessary.

see bug 27108 - this class is copied from Workbench
Comment 1 Nick Edgar CLA 2002-12-04 16:31:32 EST
See comments in bug 27108.
Comment 2 Nick Edgar CLA 2002-12-04 16:32:13 EST
Note that the other copies are in JDT Core.
UI components should just use the one in JFace.
Comment 3 Adam Kiezun CLA 2002-12-10 08:44:12 EST
closing this one - it was the jface ListsnerList that was the problem
one bug 27938 is fixed we will be able to have just 1 ListenerLists class