>
> public Enumeration sortedElements() {
>         int size = registryList.size();
>         Vector sortedElements = new Vector(size);
>         for (int i = 0; i < size; ++i) {
>                 sortedElements.add(getElement((String) registryList.elementAt(i)));
>         }
>         return sortedElements.elements();
> }

why?

public Enumeration sortedElements()
{
    return registryList.elements();
}

Lets try not to consume more memory then necessary.

-stephan




--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to